14 src = fetchFromGitHub {
18 hash = "sha256-anEKmMFB4szA6xdwzU2vtJO8rH4i8TCF+kiOOv8kBHs=";
21 vendorHash = "sha256-xtfqHeWaLMxH5paFBsbiSCVd/po9c3yy0INuy1F7Yds=";
26 "-X main.version=${version}"
29 nativeBuildInputs = [ installShellFiles ];
33 emulator = stdenv.hostPlatform.emulator buildPackages;
36 ${emulator} $out/bin/nfpm man > nfpm.1
37 installManPage ./nfpm.1
38 installShellCompletion --cmd nfpm \
39 --bash <(${emulator} $out/bin/nfpm completion bash) \
40 --fish <(${emulator} $out/bin/nfpm completion fish) \
41 --zsh <(${emulator} $out/bin/nfpm completion zsh)
45 description = "Simple deb and rpm packager written in Go";
46 homepage = "https://github.com/goreleaser/nfpm";
47 changelog = "https://github.com/goreleaser/nfpm/releases/tag/v${version}";
48 maintainers = with maintainers; [
52 license = with licenses; [ mit ];