Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildGoModule, fetchFromGitHub, lib, testers, github-release }: 2 3buildGoModule rec { 4 pname = "github-release"; 5 version = "0.10.1-unstable-2024-06-25"; 6 7 src = fetchFromGitHub { 8 owner = "github-release"; 9 repo = "github-release"; 10 rev = "d250e89a7bf00d54e823b169c3a4722a55ac67b0"; 11 hash = "sha256-QDImy9VNJ3hfGVCpMoJ72Za3CiM3SVNH1D9RFHVM+4I="; 12 }; 13 14 vendorHash = null; 15 16 ldflags = [ "-s" ]; 17 18 passthru.tests.version = testers.testVersion { 19 package = github-release; 20 version = "v${version}"; 21 }; 22 23 meta = with lib; { 24 description = "Commandline app to create and edit releases on Github (and upload artifacts)"; 25 mainProgram = "github-release"; 26 longDescription = '' 27 A small commandline app written in Go that allows you to easily create and 28 delete releases of your projects on Github. 29 In addition it allows you to attach files to those releases. 30 ''; 31 32 license = licenses.mit; 33 homepage = "https://github.com/github-release/github-release"; 34 maintainers = with maintainers; [ ardumont j03 ]; 35 platforms = with platforms; unix; 36 }; 37}