Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
81 lines
1.5 KiB
Nix
81 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
go-md2man,
|
|
installShellFiles,
|
|
pkg-config,
|
|
which,
|
|
libapparmor,
|
|
libseccomp,
|
|
libselinux,
|
|
stdenv,
|
|
makeBinaryWrapper,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "runc";
|
|
version = "1.3.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "opencontainers";
|
|
repo = "runc";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Yva0zrcnuHCuIYVi07sxTxNc4fOXVo93jO1hbHjdYNo=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
go-md2man
|
|
installShellFiles
|
|
makeBinaryWrapper
|
|
pkg-config
|
|
which
|
|
];
|
|
|
|
buildInputs = [
|
|
libselinux
|
|
libseccomp
|
|
libapparmor
|
|
];
|
|
|
|
makeFlags = [
|
|
"BUILDTAGS+=seccomp"
|
|
"SHELL=${stdenv.shell}"
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
patchShebangs .
|
|
make ${toString finalAttrs.makeFlags} runc man
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dm755 runc $out/bin/runc
|
|
installManPage man/*/*.[1-9]
|
|
wrapProgram $out/bin/runc \
|
|
--prefix PATH : /run/current-system/systemd/bin
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.tests = { inherit (nixosTests) cri-o docker podman; };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/opencontainers/runc";
|
|
description = "CLI tool for spawning and running containers according to the OCI specification";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ offline ];
|
|
teams = [ teams.podman ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "runc";
|
|
};
|
|
})
|