2021-09-18 10:53:58 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, glibc, nixosTests }:
|
2021-03-01 20:26:27 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "catatonit";
|
2021-09-18 10:53:58 +01:00
|
|
|
version = "0.1.6";
|
2021-03-01 20:26:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openSUSE";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-18 10:53:58 +01:00
|
|
|
sha256 = "sha256-hokG6o7toZxU984EvIlne33Aa2EZVZ3qu1jTZMm5nt4=";
|
2021-03-01 20:26:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = lib.optionals (!stdenv.hostPlatform.isMusl) [ glibc glibc.static ];
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
readelf -d $out/bin/catatonit | grep 'There is no dynamic section in this file.'
|
|
|
|
'';
|
|
|
|
|
2021-03-22 05:35:05 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) podman; };
|
|
|
|
|
2021-03-01 20:26:27 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A container init that is so simple it's effectively brain-dead";
|
|
|
|
homepage = "https://github.com/openSUSE/catatonit";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-03-22 05:35:05 +00:00
|
|
|
maintainers = with maintainers; [ erosennin ] ++ teams.podman.members;
|
2021-03-01 20:26:27 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|