nixpkgs/pkgs/applications/virtualization/firecracker/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

60 lines
1.7 KiB
Nix

{ fetchurl, lib, stdenv }:
let
version = "1.7.0";
# nixpkgs-update: no auto update
suffix = {
x86_64-linux = "x86_64";
aarch64-linux = "aarch64";
}."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
baseurl = "https://github.com/firecracker-microvm/firecracker/releases/download";
dlbin = sha256: fetchurl {
url = "${baseurl}/v${version}/firecracker-v${version}-${suffix}.tgz";
sha256 = sha256."${stdenv.hostPlatform.system}"or (throw "unsupported system ${stdenv.hostPlatform.system}");
};
in
stdenv.mkDerivation {
pname = "firecracker";
inherit version;
sourceRoot = ".";
src = dlbin {
x86_64-linux = "sha256-Vb0+bVmf3RCONuUvmu4jGfBsGKkPL6SbZOk/3wb1/1M=";
aarch64-linux = "sha256-PLoQA4a6qulxSns/ZRSgn6EtHr46/hstNhP1pAHt9VA=";
};
dontConfigure = true;
buildPhase = ''
mv release-v${version}-${suffix}/firecracker-v${version}-${suffix} firecracker
mv release-v${version}-${suffix}/jailer-v${version}-${suffix} jailer
chmod +x firecracker jailer
'';
doCheck = true;
checkPhase = ''
./firecracker --version
./jailer --version
'';
installPhase = ''
mkdir -p $out/bin
install -D firecracker $out/bin/firecracker
install -D jailer $out/bin/jailer
'';
meta = with lib; {
description = "Secure, fast, minimal micro-container virtualization";
homepage = "http://firecracker-microvm.io";
changelog = "https://github.com/firecracker-microvm/firecracker/releases/tag/v${version}";
mainProgram = "firecracker";
license = licenses.asl20;
platforms = [ "x86_64-linux" "aarch64-linux" ];
maintainers = with maintainers; [ thoughtpolice qjoly ];
};
}