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

27 lines
652 B
Nix
Raw Normal View History

2019-07-31 05:38:15 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nfpm";
2020-08-26 17:49:07 +02:00
version = "1.7.0";
2019-07-31 05:38:15 +02:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2020-08-26 17:49:07 +02:00
sha256 = "0jmxafvxzqg65zg5cnjd2nsz1mmw06mc7qz3lbs5h2gkxiah8264";
2019-07-31 05:38:15 +02:00
};
2020-08-26 17:49:07 +02:00
vendorSha256 = "0yvzwbm0xb1h45x96h658avbjz9w79aaa6z042xpvjqc4wsr8155";
doCheck = false;
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2019-07-31 05:38:15 +02: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;
};
}