gh-signoff: init at 0.2.1 (#420446)

authored by Aleksana and committed by GitHub 2b64afcf 0d03b87d

+70
+9
maintainers/maintainer-list.nix
··· 15207 15207 githubId = 59240843; 15208 15208 name = "Mahyar Mirrashed"; 15209 15209 }; 15210 + maikotan = { 15211 + email = "maiko.tan.coding@gmail.com"; 15212 + github = "MaikoTan"; 15213 + githubId = 19927330; 15214 + name = "Maiko Tan"; 15215 + keys = [ 15216 + { fingerprint = "9C68 989F ECF9 8993 3225 96DD 970A 6794 990C 52AE"; } 15217 + ]; 15218 + }; 15210 15219 majesticmullet = { 15211 15220 email = "hoccthomas@gmail.com.au"; 15212 15221 github = "MajesticMullet";
+61
pkgs/by-name/gh/gh-signoff/package.nix
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchFromGitHub, 5 + 6 + bash, 7 + gh, 8 + git, 9 + jq, 10 + 11 + makeWrapper, 12 + nix-update-script, 13 + }: 14 + 15 + stdenvNoCC.mkDerivation (finalAttrs: { 16 + pname = "gh-signoff"; 17 + version = "0.2.1"; # version is in the script 18 + 19 + src = fetchFromGitHub { 20 + owner = "basecamp"; 21 + repo = "gh-signoff"; 22 + rev = "24f274070c9dfbb3916347dbf6f9d38d4fb64eca"; # Repo didn't have a valid Git tag for specific version 23 + hash = "sha256-jqRbh4To6uHoohkNZrzgmGWOBp/Mahmjm5NwXjmshhM="; 24 + }; 25 + 26 + nativeBuildInputs = [ 27 + makeWrapper 28 + ]; 29 + 30 + buildInputs = [ bash ]; 31 + 32 + strictDeps = true; 33 + 34 + runtimeDeps = [ 35 + gh 36 + git 37 + jq 38 + ]; 39 + 40 + installPhase = '' 41 + runHook preInstall 42 + install -D -m755 "gh-signoff" "$out/bin/gh-signoff" 43 + runHook postInstall 44 + ''; 45 + 46 + postFixup = '' 47 + wrapProgram "$out/bin/gh-signoff" \ 48 + --prefix PATH : "${lib.makeBinPath finalAttrs.runtimeDeps}" 49 + ''; 50 + 51 + passthru.updateScript = nix-update-script { }; 52 + 53 + meta = { 54 + description = "GitHub CLI extension for local CI to sign off on your own work"; 55 + homepage = "https://github.com/basecamp/gh-signoff"; 56 + license = lib.licenses.mit; 57 + maintainers = with lib.maintainers; [ maikotan ]; 58 + mainProgram = "gh-signoff"; 59 + inherit (gh.meta) platforms; 60 + }; 61 + })