13 src = fetchFromGitHub {
17 hash = "sha256-hBA15pHCYgBKTeHBVBZkhPqoMnDkd13wx9afygTDPWk=";
20 vendorHash = "sha256-d4MuoKc7LF5KCXhLxIwuqS2Xu7ClLhyJZH4/+/LYm3w=";
22 ldflags = [ "-s" "-w" "-X main.version=${version}" ];
24 nativeBuildInputs = [ installShellFiles ];
27 let emulator = stdenv.hostPlatform.emulator buildPackages;
29 ${emulator} $out/bin/nfpm man > nfpm.1
30 installManPage ./nfpm.1
31 installShellCompletion --cmd nfpm \
32 --bash <(${emulator} $out/bin/nfpm completion bash) \
33 --fish <(${emulator} $out/bin/nfpm completion fish) \
34 --zsh <(${emulator} $out/bin/nfpm completion zsh)
38 description = "Simple deb and rpm packager written in Go";
39 homepage = "https://github.com/goreleaser/nfpm";
40 changelog = "https://github.com/goreleaser/nfpm/releases/tag/v${version}";
41 maintainers = with maintainers; [ techknowlogick caarlos0 ];
42 license = with licenses; [ mit ];