17 # these tests require additional permissions
19 "test_capabilities.py"
30 "test_preserve_fds.py"
40 stdenv.mkDerivation rec {
44 src = fetchFromGitHub {
48 hash = "sha256-d2YBpW8KivWYPRPpvXlT5tWPX8hvTCaSkMxdSuswYRA=";
49 fetchSubmodules = true;
52 nativeBuildInputs = [ autoreconfHook go-md2man pkg-config python3 ];
54 buildInputs = [ criu libcap libseccomp systemd yajl ];
56 enableParallelBuilding = true;
59 NIX_LDFLAGS = "-lcriu";
61 # we need this before autoreconfHook does its thing in order to initialize
62 # config.h with the correct values
64 echo ${version} > .tarball-version
65 echo '#define GIT_VERSION "${src.rev}"' > git-version.h
67 ${lib.concatMapStringsSep "\n" (e:
68 "substituteInPlace Makefile.am --replace 'tests/${e}' ''"
74 passthru.tests = { inherit (nixosTests) podman; };
77 changelog = "https://github.com/containers/crun/releases/tag/${version}";
78 description = "Fast and lightweight fully featured OCI runtime and C library for running containers";
79 homepage = "https://github.com/containers/crun";
80 license = licenses.gpl2Plus;
81 platforms = platforms.linux;
82 maintainers = with maintainers; [ ] ++ teams.podman.members;