gh-signoff: init at 0.2.1 (#420446)
This commit is contained in:
@@ -15207,6 +15207,15 @@
|
||||
githubId = 59240843;
|
||||
name = "Mahyar Mirrashed";
|
||||
};
|
||||
maikotan = {
|
||||
email = "maiko.tan.coding@gmail.com";
|
||||
github = "MaikoTan";
|
||||
githubId = 19927330;
|
||||
name = "Maiko Tan";
|
||||
keys = [
|
||||
{ fingerprint = "9C68 989F ECF9 8993 3225 96DD 970A 6794 990C 52AE"; }
|
||||
];
|
||||
};
|
||||
majesticmullet = {
|
||||
email = "hoccthomas@gmail.com.au";
|
||||
github = "MajesticMullet";
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
lib,
|
||||
stdenvNoCC,
|
||||
fetchFromGitHub,
|
||||
|
||||
bash,
|
||||
gh,
|
||||
git,
|
||||
jq,
|
||||
|
||||
makeWrapper,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||
pname = "gh-signoff";
|
||||
version = "0.2.1"; # version is in the script
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "basecamp";
|
||||
repo = "gh-signoff";
|
||||
rev = "24f274070c9dfbb3916347dbf6f9d38d4fb64eca"; # Repo didn't have a valid Git tag for specific version
|
||||
hash = "sha256-jqRbh4To6uHoohkNZrzgmGWOBp/Mahmjm5NwXjmshhM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [ bash ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
runtimeDeps = [
|
||||
gh
|
||||
git
|
||||
jq
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -D -m755 "gh-signoff" "$out/bin/gh-signoff"
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram "$out/bin/gh-signoff" \
|
||||
--prefix PATH : "${lib.makeBinPath finalAttrs.runtimeDeps}"
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "GitHub CLI extension for local CI to sign off on your own work";
|
||||
homepage = "https://github.com/basecamp/gh-signoff";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ maikotan ];
|
||||
mainProgram = "gh-signoff";
|
||||
inherit (gh.meta) platforms;
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user