Merge pull request #244297 from jtbx-prs/maxfetch

This commit is contained in:
Sandro 2024-05-13 16:03:05 +02:00 committed by GitHub
commit ff98479070
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,39 @@
{ 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;
};
}