3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/nfpm/default.nix

24 lines
631 B
Nix
Raw Normal View History

2019-07-31 04:38:15 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nfpm";
2020-06-08 23:33:46 +01:00
version = "1.3.1";
2019-07-31 04:38:15 +01:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2020-06-08 23:33:46 +01:00
sha256 = "14083sxim17nwmq7w7wvq9sq9pai860v8a2q14vz16hd2i427aqp";
2019-07-31 04:38:15 +01:00
};
2020-06-08 23:33:46 +01:00
vendorSha256 = "0v86fwi1i6b8ngf60ag31mrbah45f0ncqhrjdk5494f139c26067";
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;
};
}