[NixOS] Build runc from source
This commit is contained in:
@@ -52,6 +52,7 @@
|
|||||||
rclone
|
rclone
|
||||||
rcm
|
rcm
|
||||||
ripgrep
|
ripgrep
|
||||||
|
runc
|
||||||
silver-searcher
|
silver-searcher
|
||||||
skim
|
skim
|
||||||
sshfs
|
sshfs
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
(import ./runc-overlay.nix)
|
||||||
(import ./overlay.nix)
|
(import ./overlay.nix)
|
||||||
] ++ (if config.imalison.nixOverlay.enable then [ inputs.nix.overlays.default ] else []);
|
] ++ (if config.imalison.nixOverlay.enable then [ inputs.nix.overlays.default ] else []);
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,9 @@ final: prev:
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
|
||||||
nativeBuildInputs = [];
|
nativeBuildInputs = [final.installShellFiles];
|
||||||
buildInputs = [];
|
buildInputs = [];
|
||||||
|
outputs = ["out" "man"];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/bin"
|
mkdir -p "$out/bin"
|
||||||
@@ -38,6 +39,10 @@ final: prev:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod +x "$out/bin/runc"
|
chmod +x "$out/bin/runc"
|
||||||
|
|
||||||
|
installManPage ${prev.runc.man}/*/*.[1-9]
|
||||||
|
mkdir -p $man
|
||||||
|
touch $man/afile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Optionally inherit original metadata
|
# Optionally inherit original metadata
|
||||||
|
|||||||
10
nixos/runc-overlay.nix
Normal file
10
nixos/runc-overlay.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
final: prev: {
|
||||||
|
runc = prev.runc.overrideAttrs (_: {
|
||||||
|
src = prev.fetchFromGitHub {
|
||||||
|
repo = "runc";
|
||||||
|
owner = "colonelpanic8";
|
||||||
|
rev = "4b809881415e99247d8dea2eda862491dbc9acd2";
|
||||||
|
sha256 = "sha256-XOslGNu+ix52938SnnhmWKUaZaTQx9+/o74tnAjmo3I=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user