mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
gh-contribs: init at 0.9.0 (#352927)
This commit is contained in:
commit
ee33adb4a1
49
pkgs/by-name/gh/gh-contribs/package.nix
Normal file
49
pkgs/by-name/gh/gh-contribs/package.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user