acr-cli: init at 0.14 (#359508)
[NixPkgs.git] / pkgs / by-name / ma / maxfetch / package.nix
blob3b664020a4e86810c1c14593a05d8c6919eebc6d
1 { lib
2 , stdenvNoCC
3 , fetchFromGitHub
4 , makeBinaryWrapper
5 , gnused
6 , ncurses
7 , procps
8 }:
10 stdenvNoCC.mkDerivation {
11   pname = "maxfetch";
12   version = "unstable-2023-07-31";
14   src = fetchFromGitHub {
15     owner = "jobcmax";
16     repo = "maxfetch";
17     rev = "17baa4047073e20572403b70703c69696af6b68d";
18     hash = "sha256-LzOhrFFjGs9GIDjk1lUFKhlnzJuEUrKjBcv1eT3kaY8=";
19   };
21   nativeBuildInputs = [ makeBinaryWrapper ];
23   installPhase = ''
24     runHook preInstall
25     install -Dm755 maxfetch $out/bin/maxfetch
26     wrapProgram $out/bin/maxfetch \
27      --prefix PATH : ${lib.makeBinPath [ gnused ncurses procps ]}
28     runHook postInstall
29   '';
31   meta = with lib; {
32     description = "Nice fetching program written in sh";
33     homepage = "https://github.com/jobcmax/maxfetch";
34     license = licenses.gpl2Plus;
35     mainProgram = "maxfetch";
36     maintainers = with maintainers; [ jtbx ];
37     platforms = platforms.unix;
38   };