2024-04-21 15:54:59 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, fetchpatch, lib, testers, github-release }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildGoModule rec {
|
2021-03-09 03:18:52 +00:00
|
|
|
pname = "github-release";
|
|
|
|
version = "0.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "github-release";
|
|
|
|
repo = "github-release";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-J5Y0Kvon7DstTueCsoYvw6x4cOH/C1IaVArE0bXtZts=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Update version info
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/github-release/github-release/commit/ee13bb17b74135bfe646d9be1807a6bc577ba7c6.patch";
|
|
|
|
hash = "sha256-9ZcHwai0HOgapDcpvn3xssrVP9cuNAz9rTgrR4Jfdfg=";
|
|
|
|
})
|
|
|
|
|
|
|
|
# Add Go Modules support.
|
|
|
|
# See https://github.com/Homebrew/homebrew-core/pull/162414.
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/github-release/github-release/pull/129/commits/074f4e8e1688642f50a7a3cc92b5777c7b484139.patch";
|
|
|
|
hash = "sha256-OBFbOvNhqcNiuSCP0AfClntj7y5habn+r2eBkmClsgI=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = github-release;
|
|
|
|
version = "v${version}";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Commandline app to create and edit releases on Github (and upload artifacts)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "github-release";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
A small commandline app written in Go that allows you to easily create and
|
|
|
|
delete releases of your projects on Github.
|
|
|
|
In addition it allows you to attach files to those releases.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.mit;
|
2021-03-09 03:18:52 +00:00
|
|
|
homepage = "https://github.com/github-release/github-release";
|
|
|
|
maintainers = with maintainers; [ ardumont j03 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|