mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
gvisor: fix ldconfig path
This commit is contained in:
parent
030938f1cd
commit
da7ae1baf8
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user