summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/virtualization
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-11-22 10:37:18 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-11-23 08:46:34 +1000
commit50e24b8e0aed6132d4d5a5768e85502314855834 (patch)
tree7b6f285a31b5d80f015af35c04091ba2be6f08d1 /pkgs/applications/virtualization
parenta82d8ca64df883bdad18cb20029faf87ac49e48f (diff)
runc: add wrapper for procps, systemd
for cgroupsv2 it needs `busctl` and `systemctl` in its PATH.
Diffstat (limited to 'pkgs/applications/virtualization')
-rw-r--r--pkgs/applications/virtualization/runc/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/virtualization/runc/default.nix b/pkgs/applications/virtualization/runc/default.nix
index 1a7935dcf7d5..c3882ae9472e 100644
--- a/pkgs/applications/virtualization/runc/default.nix
+++ b/pkgs/applications/virtualization/runc/default.nix
@@ -9,6 +9,8 @@
, apparmor-parser
, libseccomp
, libselinux
+, makeWrapper
+, procps
, nixosTests
}:
@@ -26,7 +28,7 @@ buildGoPackage rec {
goPackagePath = "github.com/opencontainers/runc";
outputs = [ "out" "man" ];
- nativeBuildInputs = [ go-md2man installShellFiles pkg-config which ];
+ nativeBuildInputs = [ go-md2man installShellFiles makeWrapper pkg-config which ];
buildInputs = [ libselinux libseccomp libapparmor apparmor-parser ];
@@ -43,6 +45,9 @@ buildGoPackage rec {
installPhase = ''
install -Dm755 runc $out/bin/runc
installManPage man/*/*.[1-9]
+ wrapProgram $out/bin/runc \
+ --prefix PATH : ${lib.makeBinPath [ procps ]} \
+ --prefix PATH : /run/current-system/systemd/bin
'';
passthru.tests = { inherit (nixosTests) cri-o docker podman; };