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

27 lines
650 B
Nix
Raw Normal View History

2019-07-31 04:38:15 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nfpm";
2021-03-01 17:39:42 +00:00
version = "2.2.5";
2019-07-31 04:38:15 +01:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2021-03-01 17:39:42 +00:00
sha256 = "sha256-B8bXZ5PjlZIly25jK23ODa+RYGDfxHR0Z2fpAjptgP8=";
2019-07-31 04:38:15 +01:00
};
2021-02-11 20:12:18 +00:00
vendorSha256 = "sha256-aSoryidfAfqPBpOtAXFJsq1ZcqJqpGiX3pZz5GpkKqQ=";
doCheck = false;
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;
};
}