blob: cc364138b45012cf525923fa0f5c5d7ab4b3bd30 (
plain)
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
44
|
{
lib,
stdenv,
fetchFromGitHub,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dool";
version = "1.3.8";
src = fetchFromGitHub {
owner = "scottchiefbaker";
repo = "dool";
rev = "v${finalAttrs.version}";
hash = "sha256-aIGYv8UAC3toQe21xdtPUnsnrJhzbvQLfN/pPU3L2J0=";
};
buildInputs = [
python3
];
makeFlags = [
"prefix=$(out)"
];
# fix the plugins directory
postPatch = ''
substituteInPlace dool \
--replace-fail \
"os.path.dirname(os.path.abspath(__file__)) + '/plugins/'" \
"'$out/share/dool/'"
'';
meta = {
description = "Python3 compatible clone of dstat";
homepage = "https://github.com/scottchiefbaker/dool";
changelog = "https://github.com/scottchiefbaker/dool/blob/${finalAttrs.src.rev}/ChangeLog";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.matthiasbeyer ];
platforms = lib.platforms.linux;
mainProgram = "dool";
};
})
|