mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 04:03:56 +00:00
a18b144415
Diff: https://github.com/scottchiefbaker/dool/compare/v1.2.0...v1.3.0 Changelog: https://github.com/scottchiefbaker/dool/blob/v1.3.0/ChangeLog
43 lines
906 B
Nix
43 lines
906 B
Nix
{ 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;
|
|
};
|
|
}
|