add get* helper functions and mass-replace manual outputs search with them
This commit is contained in:
@@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
|
||||
sed -i 's,/usr/share/zoneinfo/,${tzdata}/share/zoneinfo/,' src/time/zoneinfo_unix.go
|
||||
|
||||
# Find the loader dynamically
|
||||
LOADER="$(find ${libc.out or libc}/lib -name ld-linux\* | head -n 1)"
|
||||
LOADER="$(find ${lib.getLib libc}/lib -name ld-linux\* | head -n 1)"
|
||||
|
||||
# Replace references to the loader
|
||||
find src/cmd -name asm.c -exec sed -i "s,/lib/ld-linux.*\.so\.[0-9],$LOADER," {} \;
|
||||
|
||||
Reference in New Issue
Block a user