nixpkgs-suyu/pkgs/tools/package-management/nfpm/default.nix
2022-04-07 15:33:50 -03:00

24 lines
649 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "nfpm";
version = "2.15.1";
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
sha256 = "sha256-D/1psEpOoDiA/dpnUc9sUaOq8Dk5QEImIWEp08FyV7o=";
};
vendorSha256 = "sha256-guJgLjmB29sOLIzs2+gKNp0WTWC3zS9Sb5DD5IistKY=";
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 ];
};
}