2019-07-31 04:38:15 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nfpm";
|
2019-10-19 22:20:00 +01:00
|
|
|
version = "1.0.0";
|
2019-07-31 04:38:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goreleaser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-10-19 22:20:00 +01:00
|
|
|
sha256 = "0d92wwmvyk6sn3z61y1n9w4wydafra941s0cpbnkc7c9qkxiwwnb";
|
2019-07-31 04:38:15 +01:00
|
|
|
};
|
|
|
|
|
2019-10-19 22:20:00 +01:00
|
|
|
modSha256 = "04hcg1n8f1wxz7n1k91nfspkd1ca7v5xf4hjj3wiw55vmykzcsm5";
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
|
2019-07-31 04:38:15 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple deb and rpm packager written in Go";
|
|
|
|
homepage = "https://github.com/goreleaser/nfpm";
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|