[NixOS] Build runc from source

This commit is contained in:
2024-12-30 22:55:46 -07:00
parent 2d4c1df31f
commit 5b3915ad27
4 changed files with 18 additions and 1 deletions

View File

@@ -11,8 +11,9 @@ final: prev:
dontBuild = true;
dontConfigure = true;
nativeBuildInputs = [];
nativeBuildInputs = [final.installShellFiles];
buildInputs = [];
outputs = ["out" "man"];
installPhase = ''
mkdir -p "$out/bin"
@@ -38,6 +39,10 @@ final: prev:
EOF
chmod +x "$out/bin/runc"
installManPage ${prev.runc.man}/*/*.[1-9]
mkdir -p $man
touch $man/afile
'';
# Optionally inherit original metadata