nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 978 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 makeBinaryWrapper, 6 gnused, 7 ncurses, 8 procps, 9}: 10 11stdenvNoCC.mkDerivation { 12 pname = "maxfetch"; 13 version = "unstable-2023-07-31"; 14 15 src = fetchFromGitHub { 16 owner = "jobcmax"; 17 repo = "maxfetch"; 18 rev = "17baa4047073e20572403b70703c69696af6b68d"; 19 hash = "sha256-LzOhrFFjGs9GIDjk1lUFKhlnzJuEUrKjBcv1eT3kaY8="; 20 }; 21 22 nativeBuildInputs = [ makeBinaryWrapper ]; 23 24 installPhase = '' 25 runHook preInstall 26 install -Dm755 maxfetch $out/bin/maxfetch 27 wrapProgram $out/bin/maxfetch \ 28 --prefix PATH : ${ 29 lib.makeBinPath [ 30 gnused 31 ncurses 32 procps 33 ] 34 } 35 runHook postInstall 36 ''; 37 38 meta = { 39 description = "Nice fetching program written in sh"; 40 homepage = "https://github.com/jobcmax/maxfetch"; 41 license = lib.licenses.gpl2Plus; 42 mainProgram = "maxfetch"; 43 maintainers = with lib.maintainers; [ jtbx ]; 44 platforms = lib.platforms.unix; 45 }; 46}