2019-07-31 04:38:15 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "nfpm";
|
2020-01-20 01:20:20 +00:00
|
|
|
version = "1.1.10";
|
2019-07-31 04:38:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "goreleaser";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-01-20 01:20:20 +00:00
|
|
|
sha256 = "0qn9hybqnhyf1xb6n0m4qq2ac8h187i2pjkkik73qly1hmyq45j7";
|
2019-07-31 04:38:15 +01:00
|
|
|
};
|
|
|
|
|
2020-01-20 01:20:20 +00:00
|
|
|
modSha256 = "037ihnvssgkzbg94yfw4lwqnhj02m187dfn1fm7i6yv13kf0gkpx";
|
2019-10-19 22:20:00 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|