gvisor: fix ldconfig path

This commit is contained in:
Moritz Sanft 2024-05-15 15:47:54 +02:00
parent 030938f1cd
commit da7ae1baf8
No known key found for this signature in database
GPG Key ID: 335D28368B1DA615

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 ];