lib.packagesFromDirectoryRecursive: Improved documentation (#359898)
[NixPkgs.git] / pkgs / by-name / do / dool / package.nix
blobb7ff128131e85d945118e34bac28a64441d9dfae
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , python3
5 }:
7 stdenv.mkDerivation rec {
8   pname = "dool";
9   version = "1.3.3";
11   src = fetchFromGitHub {
12     owner = "scottchiefbaker";
13     repo = "dool";
14     rev = "v${version}";
15     hash = "sha256-VII8Om43YILP3w0CsiKKdJDuK2Lc1rit2EY+eAArvng=";
16   };
18   buildInputs = [
19     python3
20   ];
22   makeFlags = [
23     "prefix=$(out)"
24   ];
26   # fix the plugins directory
27   postPatch = ''
28     substituteInPlace dool \
29       --replace-fail \
30         "os.path.dirname(os.path.abspath(__file__)) + '/plugins/'" \
31         "'$out/share/dool/'"
32   '';
34   meta = with lib; {
35     description = "Python3 compatible clone of dstat";
36     homepage = "https://github.com/scottchiefbaker/dool";
37     changelog = "https://github.com/scottchiefbaker/dool/blob/${src.rev}/ChangeLog";
38     license = licenses.gpl3Plus;
39     maintainers = with maintainers; [ figsoda ];
40     platforms = platforms.linux;
41     mainProgram = "dool";
42   };