2020-03-20 10:23:24 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "goreleaser";
|
2021-02-12 13:38:55 +01:00
|
|
|
version = "0.155.2";
|
2020-03-20 10:23:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goreleaser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-02-12 13:38:55 +01:00
|
|
|
sha256 = "sha256-YbB5mJNfGei72brV1br1dvbxrbWkqnsbuA5/o+fD0Fc=";
|
2020-03-20 10:23:24 +01:00
|
|
|
};
|
|
|
|
|
2021-02-12 13:38:55 +01:00
|
|
|
vendorSha256 = "sha256-d6l+d59DZDVCMhdjwRz7BKcxGXl1L2kdFCk82NS2XmA=";
|
2020-03-20 10:23:24 +01:00
|
|
|
|
2020-10-19 05:29:50 +02:00
|
|
|
buildFlagsArray = [
|
|
|
|
"-ldflags="
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
"-X main.builtBy=nixpkgs"
|
|
|
|
];
|
|
|
|
|
|
|
|
# tests expect the source files to be a build repo
|
|
|
|
doCheck = false;
|
2020-03-20 10:23:24 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Deliver Go binaries as fast and easily as possible";
|
|
|
|
homepage = "https://goreleaser.com";
|
2020-10-24 02:46:13 +02:00
|
|
|
maintainers = with maintainers; [ c0deaddict endocrimes sarcasticadmin ];
|
2020-03-20 10:23:24 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|