gvisor: fix ldconfig path

This commit is contained in:
Moritz Sanft
2024-05-19 09:07:31 +02:00
parent 030938f1cd
commit da7ae1baf8
+7
View File
@@ -6,6 +6,7 @@
, iptables
, makeWrapper
, procps
, glibc
}:
buildGoModule {
@@ -23,6 +24,12 @@ buildGoModule {
hash = "sha256-idgUEbYAfnm/HphVs12Sj1FwG+jmL2BBr0PJnG9BC3A=";
};
# Replace the placeholder with the actual path to ldconfig
postPatch = ''
substituteInPlace runsc/container/container.go \
--replace-fail '"/sbin/ldconfig"' '"${glibc}/bin/ldconfig"'
'';
vendorHash = "sha256-jbMXeNXzvjfJcIfHjvf8I3ePjm6KFTXJ94ia4T2hUs4=";
nativeBuildInputs = [ makeWrapper ];