{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "nfpm"; version = "2.22.2"; src = fetchFromGitHub { owner = "goreleaser"; repo = pname; rev = "v${version}"; sha256 = "sha256-XxRIXNu35J5v4Wl2gasR+aIxxIst6/7D5aVWzRlI4ag="; }; vendorSha256 = "sha256-DUgBaHyFl7Q3EP3pX74fi+CnJN+YTysR2Kgq9+SiKwI="; 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 ]; }; }