gh-contribs: init at 0.9.0 (#352927)

This commit is contained in:
Sefa Eyeoglu 2024-11-05 21:08:25 +01:00 committed by GitHub
commit ee33adb4a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,49 @@
{
coreutils,
fetchFromGitHub,
gh,
lib,
makeWrapper,
nix-update-script,
stdenvNoCC,
}:
stdenvNoCC.mkDerivation rec {
pname = "gh-contribs";
version = "0.9.0";
src = fetchFromGitHub {
owner = "MintArchit";
repo = "gh-contribs";
rev = "v${version}";
hash = "sha256-yPJ9pmnbqR+fXH02Q5VMn0v2MuDQbPUpNzKw1awmKVE=";
};
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
install -D -m755 "gh-contribs" "$out/bin/gh-contribs"
'';
postFixup = ''
wrapProgram "$out/bin/gh-contribs" \
--prefix PATH : "${
lib.makeBinPath [
coreutils
gh
]
}"
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/MintArchit/gh-contribs";
description = "GitHub Contribution Graph CLI";
maintainers = [ lib.maintainers.vinnymeller ];
license = lib.licenses.unlicense;
mainProgram = "gh-contribs";
platforms = lib.platforms.all;
};
}