at master 44 lines 1.1 kB view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5 nix-update-script, 6 versionCheckHook, 7}: 8 9buildGoModule (finalAttrs: { 10 pname = "github-release"; 11 version = "0.11.0"; 12 13 src = fetchFromGitHub { 14 owner = "github-release"; 15 repo = "github-release"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-foQZsYfYM/Cqtck+xfdup6WUeoBiqBTP7USCyPMv5q0="; 18 }; 19 20 vendorHash = null; 21 22 ldflags = [ "-s" ]; 23 24 doInstallCheck = true; 25 nativeInstallCheckInputs = [ versionCheckHook ]; 26 27 passthru.updateScript = nix-update-script { }; 28 29 meta = { 30 description = "Commandline app to create and edit releases on Github (and upload artifacts)"; 31 mainProgram = "github-release"; 32 longDescription = '' 33 A small commandline app written in Go that allows you to easily create and 34 delete releases of your projects on Github. 35 In addition it allows you to attach files to those releases. 36 ''; 37 license = lib.licenses.mit; 38 homepage = "https://github.com/github-release/github-release"; 39 maintainers = with lib.maintainers; [ 40 ardumont 41 j03 42 ]; 43 }; 44})