e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
43 lines
932 B
Nix
43 lines
932 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dool";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scottchiefbaker";
|
|
repo = "dool";
|
|
rev = "v${version}";
|
|
hash = "sha256-g74XyNtNdYf2qTCFBWIVZ3LhngDln/yu3bRJzO890JU=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|