at 24.11-pre 1.7 kB view raw
1{ buildGoModule, fetchFromGitHub, fetchpatch, lib, testers, github-release }: 2 3buildGoModule rec { 4 pname = "github-release"; 5 version = "0.10.0"; 6 7 src = fetchFromGitHub { 8 owner = "github-release"; 9 repo = "github-release"; 10 rev = "v${version}"; 11 hash = "sha256-J5Y0Kvon7DstTueCsoYvw6x4cOH/C1IaVArE0bXtZts="; 12 }; 13 14 vendorHash = null; 15 16 patches = [ 17 # Update version info 18 (fetchpatch { 19 url = "https://github.com/github-release/github-release/commit/ee13bb17b74135bfe646d9be1807a6bc577ba7c6.patch"; 20 hash = "sha256-9ZcHwai0HOgapDcpvn3xssrVP9cuNAz9rTgrR4Jfdfg="; 21 }) 22 23 # Add Go Modules support. 24 # See https://github.com/Homebrew/homebrew-core/pull/162414. 25 (fetchpatch { 26 url = "https://github.com/github-release/github-release/pull/129/commits/074f4e8e1688642f50a7a3cc92b5777c7b484139.patch"; 27 hash = "sha256-OBFbOvNhqcNiuSCP0AfClntj7y5habn+r2eBkmClsgI="; 28 }) 29 ]; 30 31 ldflags = [ "-s" "-w" ]; 32 33 passthru.tests.version = testers.testVersion { 34 package = github-release; 35 version = "v${version}"; 36 }; 37 38 meta = with lib; { 39 description = "Commandline app to create and edit releases on Github (and upload artifacts)"; 40 mainProgram = "github-release"; 41 longDescription = '' 42 A small commandline app written in Go that allows you to easily create and 43 delete releases of your projects on Github. 44 In addition it allows you to attach files to those releases. 45 ''; 46 47 license = licenses.mit; 48 homepage = "https://github.com/github-release/github-release"; 49 maintainers = with maintainers; [ ardumont j03 ]; 50 platforms = with platforms; unix; 51 }; 52}