9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
42 lines
906 B
Nix
42 lines
906 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dool";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scottchiefbaker";
|
|
repo = "dool";
|
|
rev = "v${version}";
|
|
hash = "sha256-e6gLPmxOZBw6htiJ5Ljob2tQ9xB4kjK8vPs/9WMGER4=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|