forked from mirrors/nixpkgs
27 lines
652 B
Nix
27 lines
652 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "nfpm";
|
|
version = "1.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "goreleaser";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0hg15k9bz5iw7mv4m31rg4f5anfiirr3vjvy16z532vwfh05ixw3";
|
|
};
|
|
|
|
vendorSha256 = "032l0xrf4ny4ildinxlfjy8sslhcl2krmgnm07dnx999jxlswxym";
|
|
|
|
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;
|
|
};
|
|
}
|