8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
26 lines
669 B
Nix
26 lines
669 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "nfpm";
|
|
version = "2.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "goreleaser";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-z9jGivdO7LduJuHbyKr4sl8xg+FGVvKwCm+RgVQPxJQ=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-guJgLjmB29sOLIzs2+gKNp0WTWC3zS9Sb5DD5IistKY=";
|
|
|
|
doCheck = false;
|
|
|
|
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 = with maintainers; [ marsam techknowlogick ];
|
|
license = with licenses; [ mit ];
|
|
};
|
|
}
|