nixpkgs/pkgs/tools/misc/goreleaser/default.nix
Danielle Lancashire c8330c9972
maintainers: remove endocrimes
My original commit was somewhat more tongue in cheek, but I think this
time I'm going to be honest, rather than hiding behind humor.

I'm angry that we as a community have reached a point where we're
falling apart because people would rather accept sealioning and bad
faith arguments that belong in a 2002 mailing list, not a 2024 software
community.

Every time I dare come back to the Nix community as a more active
contributor it feels like we have a fresh wave of controversy that we
don't ever heal from, everyone just moves on, more tired, and more
broken than before. And now it's crossed a line.

I'm out.

I hope the community decides to actually try and heal. Tolerating the intolerant
for too long has consequences - and the [paradox
of tolerance](https://en.wikipedia.org/wiki/Paradox_of_tolerance) has
come to its natural conclusion here.

If it does heal, I'll be back with a vengeance, because it turns out replacing
Nix is hard - emotionally and technically, and I'll miss it.

~Danielle

(this commit+PR are not a place for useless debates.)
2024-04-27 23:48:44 +02:00

62 lines
1.5 KiB
Nix

{ stdenv
, lib
, buildGoModule
, fetchFromGitHub
, installShellFiles
, buildPackages
, testers
, goreleaser
}:
buildGoModule rec {
pname = "goreleaser";
version = "1.25.1";
src = fetchFromGitHub {
owner = "goreleaser";
repo = pname;
rev = "v${version}";
hash = "sha256-WYpFSV4dMz6sYNc45iXE/oOTmyZqMqHBZlx+00NZHbU=";
};
vendorHash = "sha256-vI/S4QtN72tmBVZ2PPcavotJBkl+bdXO9OFqlOGw1J8=";
ldflags =
[ "-s" "-w" "-X main.version=${version}" "-X main.builtBy=nixpkgs" ];
# tests expect the source files to be a build repo
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
postInstall =
let emulator = stdenv.hostPlatform.emulator buildPackages;
in ''
${emulator} $out/bin/goreleaser man > goreleaser.1
installManPage ./goreleaser.1
installShellCompletion --cmd goreleaser \
--bash <(${emulator} $out/bin/goreleaser completion bash) \
--fish <(${emulator} $out/bin/goreleaser completion fish) \
--zsh <(${emulator} $out/bin/goreleaser completion zsh)
'';
passthru.tests.version = testers.testVersion {
package = goreleaser;
command = "goreleaser -v";
inherit version;
};
meta = with lib; {
description = "Deliver Go binaries as fast and easily as possible";
homepage = "https://goreleaser.com";
maintainers = with maintainers; [
c0deaddict
sarcasticadmin
techknowlogick
developer-guy
caarlos0
];
license = licenses.mit;
mainProgram = "goreleaser";
};
}