btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / fo / fornalder / package.nix
blobc7774a60cf2b9e9f957f1c3146f75bdc86533b00
1 { lib, rustPlatform, fetchFromGitHub, makeWrapper, gnuplot }:
3 rustPlatform.buildRustPackage rec {
4   pname = "fornalder";
5   version = "unstable-2022-12-25";
7   src = fetchFromGitHub {
8     owner = "hpjansson";
9     repo = pname;
10     rev = "3248128fe320d88183d17a65e936092e07d6529b";
11     sha256 = "sha256-IPSxVWJs4EhyBdA1NXpD8v3fusewt1ELpn/kbZt7c5Q=";
12   };
14   cargoHash = "sha256-eK+oQbOQj8pKiOTXzIgRjzVB7Js8MMa9V6cF9D98Ftc=";
16   nativeBuildInputs = [ makeWrapper ];
18   postInstall = ''
19     wrapProgram $out/bin/fornalder \
20       --suffix PATH : ${lib.makeBinPath [ gnuplot ]}
21   '';
23   meta = with lib; {
24     description = "Visualize long-term trends in collections of Git repositories";
25     homepage = "https://github.com/hpjansson/fornalder";
26     license = licenses.gpl3Only;
27     maintainers = with maintainers; [ astro figsoda ];
28     mainProgram = "fornalder";
29   };