nixpkgs/pkgs/tools/package-management/nfpm/default.nix

25 lines
632 B
Nix
Raw Normal View History

2019-07-31 04:38:15 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nfpm";
2020-08-02 08:39:36 +01:00
version = "1.5.0";
2019-07-31 04:38:15 +01:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2020-08-02 08:39:36 +01:00
sha256 = "075jrarvpvh4hll3zvrf65ar3a2ya63ma343hss11l1mr3gykb9d";
2019-07-31 04:38:15 +01:00
};
2020-08-02 08:39:36 +01:00
vendorSha256 = "11ab1w89zn3m81swzsnyiw1x10v58phid4y68rralkp6bhisz25b";
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;
};
}