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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
649 B
Nix
Raw Normal View History

2019-07-31 04:38:15 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nfpm";
2022-07-31 00:29:23 +01:00
version = "2.17.0";
2019-07-31 04:38:15 +01:00
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
2022-07-31 00:29:23 +01:00
sha256 = "sha256-+X68HW5pfJtMWmUoOgI1yHn5rfOVMKQaGL0/MQtMDQM=";
2019-07-31 04:38:15 +01:00
};
2022-07-31 00:29:23 +01:00
vendorSha256 = "sha256-KR1DgF41fjrCX4bn82kZ49xImQQitIyMSjlBPuNkF8c=";
2021-08-26 07:45:51 +01:00
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";
2022-03-19 03:24:36 +00:00
maintainers = with maintainers; [ marsam techknowlogick ];
license = with licenses; [ mit ];
2019-07-31 04:38:15 +01:00
};
}