2023-10-09 19:29:22 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, autoreconfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glibc
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "catatonit";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.2.0";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openSUSE";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-AqJURf4OrPHfTm5joA3oPXH4McE1k0ouvDXAF3jiwgk=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
strictDeps = true;
|
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Container init that is so simple it's effectively brain-dead";
|
2021-03-23 19:22:30 +00:00
|
|
|
homepage = "https://github.com/openSUSE/catatonit";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-03-23 19:22:30 +00:00
|
|
|
maintainers = with maintainers; [ erosennin ] ++ teams.podman.members;
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "catatonit";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
}
|