depot/third_party/nixpkgs/pkgs/tools/package-management/nfpm/default.nix
Default email 51e09efdfc Project import generated by Copybara.
GitOrigin-RevId: 296793637b22bdb4d23b479879eba0a71c132a66
2020-12-03 09:41:04 +01:00

26 lines
653 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nfpm";
version = "1.10.2";
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
sha256 = "08qz9zfk19iwf8qfv7vmzvbl8w1vpjrry25w3pxsg93gyjw8v7mi";
};
vendorSha256 = "0qnfd47ykb6g28d3mnfncgmkvqd1myx47x563sxx4lcsq542q83n";
doCheck = false;
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
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;
};
}