2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dool";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.3.3";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scottchiefbaker";
|
|
|
|
repo = "dool";
|
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-VII8Om43YILP3w0CsiKKdJDuK2Lc1rit2EY+eAArvng=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "dool";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|