9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-AqJURf4OrPHfTm5joA3oPXH4McE1k0ouvDXAF3jiwgk=";
20 nativeBuildInputs = [ autoreconfHook ];
21 buildInputs = lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
23 enableParallelBuilding = true;
26 doInstallCheck = true;
27 installCheckPhase = ''
28 readelf -d $out/bin/catatonit | grep 'There is no dynamic section in this file.'
31 passthru.tests = { inherit (nixosTests) podman; };
34 description = "Container init that is so simple it's effectively brain-dead";
35 homepage = "https://github.com/openSUSE/catatonit";
36 license = licenses.gpl2Plus;
37 maintainers = with maintainers; [ erosennin ] ++ teams.podman.members;
38 platforms = platforms.linux;
39 mainProgram = "catatonit";