mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
c8330c9972
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.)
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
, btrfs-progs
|
|
, go-md2man
|
|
, installShellFiles
|
|
, util-linux
|
|
, nixosTests
|
|
, kubernetes
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "containerd";
|
|
version = "1.7.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containerd";
|
|
repo = "containerd";
|
|
rev = "v${version}";
|
|
hash = "sha256-OApJaH11iTvjW4gZaANSCVcxw/VHG7a/6OnYcUcHFME=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
nativeBuildInputs = [ go-md2man installShellFiles util-linux ];
|
|
|
|
buildInputs = [ btrfs-progs ];
|
|
|
|
BUILDTAGS = lib.optionals (btrfs-progs == null) [ "no_btrfs" ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
patchShebangs .
|
|
make binaries "VERSION=v${version}" "REVISION=${src.rev}"
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm555 bin/* -t $out/bin
|
|
installShellCompletion --bash contrib/autocomplete/ctr
|
|
installShellCompletion --zsh --name _ctr contrib/autocomplete/zsh_autocomplete
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) docker; } // kubernetes.tests;
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/containerd/containerd/releases/tag/${src.rev}";
|
|
homepage = "https://containerd.io/";
|
|
description = "A daemon to control runC";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ offline vdemeester ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|