blob: a54bcd4b14e87ae3664da10f2df523cb1f97e0af (
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
42
43
|
{ lib
, stdenv
, fetchFromGitHub
, python3
}:
stdenv.mkDerivation rec {
pname = "dool";
version = "1.3.0";
src = fetchFromGitHub {
owner = "scottchiefbaker";
repo = "dool";
rev = "v${version}";
hash = "sha256-FekCxzB+jZtiPfJ/yAtvCsaNZJJkgWUAFe6hMXznSJw=";
};
buildInputs = [
python3
];
makeFlags = [
"prefix=$(out)"
];
# fix the plugins directory
postPatch = ''
substituteInPlace dool \
--replace \
"os.path.abspath(os.path.dirname(sys.argv[0])) + '/plugins/'" \
"'$out/share/dool/'"
'';
meta = with lib; {
description = "Python3 compatible clone of dstat";
homepage = "https://github.com/scottchiefbaker/dool";
changelog = "https://github.com/scottchiefbaker/dool/blob/${src.rev}/ChangeLog";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ figsoda ];
platforms = platforms.unix;
mainProgram = "dool";
};
}
|