mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-01 13:14:42 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #538598
47 lines
980 B
Nix
47 lines
980 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
makeBinaryWrapper,
|
|
gnused,
|
|
ncurses,
|
|
procps,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "maxfetch";
|
|
version = "unstable-2023-07-31";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "natewhar";
|
|
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 = {
|
|
description = "Nice fetching program written in sh";
|
|
homepage = "https://github.com/natewhar/maxfetch";
|
|
license = lib.licenses.gpl2Plus;
|
|
mainProgram = "maxfetch";
|
|
maintainers = with lib.maintainers; [ jtbx ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|