19 src = fetchFromGitHub {
20 owner = "opencontainers";
23 hash = "sha256-N77CU5XiGYIdwQNPFyluXjseTeaYuNJ//OsEUS0g/v0=";
27 outputs = [ "out" "man" ];
29 nativeBuildInputs = [ go-md2man installShellFiles makeWrapper pkg-config which ];
31 buildInputs = [ libselinux libseccomp libapparmor ];
33 makeFlags = [ "BUILDTAGS+=seccomp" ];
38 make ${toString makeFlags} runc man
44 install -Dm755 runc $out/bin/runc
45 installManPage man/*/*.[1-9]
46 wrapProgram $out/bin/runc \
47 --prefix PATH : /run/current-system/systemd/bin
51 passthru.tests = { inherit (nixosTests) cri-o docker podman; };
54 homepage = "https://github.com/opencontainers/runc";
55 description = "A CLI tool for spawning and running containers according to the OCI specification";
56 license = licenses.asl20;
57 maintainers = with maintainers; [ offline ] ++ teams.podman.members;
58 platforms = platforms.linux;