blob: a9e4dfe8ab744ce722a431c8daa332a2ad20e7eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib
, fetchFromGitHub
, python3Packages
, installShellFiles
}:
python3Packages.buildPythonApplication rec {
pname = "zpool-iostat-viz";
version = "unstable-2021-11-13";
format = "other";
src = fetchFromGitHub {
owner = "chadmiller";
repo = pname;
rev = "cdd8f3d882ab7a9990fb2d26af3e5b2bcc4bb312";
sha256 = "sha256-vNXD5SauBpCtP7VPTumQ0/wXfW0PjtooS21cjpAole8=";
};
nativeBuildInputs = [
installShellFiles
python3Packages.wrapPython
];
# There is no setup.py
dontConfigure = true;
dontBuild = true;
doCheck = false;
installPhase = ''
wrapPythonPrograms
install -D zpool-iostat-viz $out/bin/zpool-iostat-viz
installManPage zpool-iostat-viz.1
'';
meta = with lib; {
description = "\"zpool iostats\" for humans; find the slow parts of your ZFS pool";
homepage = "https://github.com/chadmiller/zpool-iostat-viz";
license = licenses.bsd2;
maintainers = with maintainers; [ julm ];
};
}
|