Files
nixpkgs/pkgs/by-name/ma/maxfetch/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
976 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
makeBinaryWrapper,
gnused,
ncurses,
procps,
}:
stdenvNoCC.mkDerivation {
pname = "maxfetch";
version = "unstable-2023-07-31";
src = fetchFromGitHub {
owner = "jobcmax";
repo = "maxfetch";
rev = "17baa4047073e20572403b70703c69696af6b68d";
hash = "sha256-LzOhrFFjGs9GIDjk1lUFKhlnzJuEUrKjBcv1eT3kaY8=";
};
nativeBuildInputs = [ makeBinaryWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 maxfetch $out/bin/maxfetch
wrapProgram $out/bin/maxfetch \
--prefix PATH : ${
lib.makeBinPath [
gnused
ncurses
procps
]
}
runHook postInstall
'';
meta = with lib; {
description = "Nice fetching program written in sh";
homepage = "https://github.com/jobcmax/maxfetch";
license = licenses.gpl2Plus;
mainProgram = "maxfetch";
maintainers = with maintainers; [ jtbx ];
platforms = platforms.unix;
};
}