Merge pull request #244297 from jtbx-prs/maxfetch

authored by

Sandro and committed by
GitHub
ff984790 78740d80

+39
+39
pkgs/by-name/ma/maxfetch/package.nix
··· 1 + { lib 2 + , stdenvNoCC 3 + , fetchFromGitHub 4 + , makeBinaryWrapper 5 + , gnused 6 + , ncurses 7 + , procps 8 + }: 9 + 10 + stdenvNoCC.mkDerivation { 11 + pname = "maxfetch"; 12 + version = "unstable-2023-07-31"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "jobcmax"; 16 + repo = "maxfetch"; 17 + rev = "17baa4047073e20572403b70703c69696af6b68d"; 18 + hash = "sha256-LzOhrFFjGs9GIDjk1lUFKhlnzJuEUrKjBcv1eT3kaY8="; 19 + }; 20 + 21 + nativeBuildInputs = [ makeBinaryWrapper ]; 22 + 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 + ''; 30 + 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 + }; 39 + }