Files
nixpkgs/pkgs/by-name/ca/catatonit/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.0 KiB
Nix

{
stdenv,
lib,
autoreconfHook,
fetchFromGitHub,
glibc,
nixosTests,
}:
stdenv.mkDerivation rec {
pname = "catatonit";
version = "0.2.1";
src = fetchFromGitHub {
owner = "openSUSE";
repo = "catatonit";
rev = "v${version}";
sha256 = "sha256-sc/T4WjCPFfwUWxlBx07mQTmcOApblHygfVT824HcJM=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = lib.optionals (!stdenv.hostPlatform.isMusl) [
glibc
glibc.static
];
enableParallelBuilding = true;
strictDeps = true;
doInstallCheck = true;
installCheckPhase = ''
readelf -d $out/bin/catatonit | grep 'There is no dynamic section in this file.'
'';
passthru.tests = { inherit (nixosTests) podman; };
meta = with lib; {
description = "Container init that is so simple it's effectively brain-dead";
homepage = "https://github.com/openSUSE/catatonit";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ erosennin ];
teams = [ teams.podman ];
platforms = platforms.linux;
mainProgram = "catatonit";
};
}