lol

racket: make lib paths consistent

authored by

rczb and committed by
Masum Reza
f8a7597f 1700b190

+7 -9
+7 -9
pkgs/by-name/ra/racket/package.nix
··· 26 let 27 minimal = racket-minimal.override { inherit disableDocs; }; 28 29 - makeLibPaths = lib.concatMapStringsSep " " ( 30 - lib.flip lib.pipe [ 31 - lib.getLib 32 - (x: ''"${x}/lib"'') 33 - ] 34 - ); 35 - 36 manifest = lib.importJSON ./manifest.json; 37 inherit (stdenv.hostPlatform) isDarwin; 38 in ··· 71 72 preBuild = 73 let 74 - libPaths = makeLibPaths finalAttrs.buildInputs; 75 libPathsVar = if isDarwin then "DYLD_FALLBACK_LIBRARY_PATH" else "LD_LIBRARY_PATH"; 76 in 77 /* ··· 79 dependencies, which is integrated into the build process of Racket 80 */ 81 '' 82 - for lib_path in ${libPaths}; do 83 addToSearchPath ${libPathsVar} $lib_path 84 done 85 ''
··· 26 let 27 minimal = racket-minimal.override { inherit disableDocs; }; 28 29 manifest = lib.importJSON ./manifest.json; 30 inherit (stdenv.hostPlatform) isDarwin; 31 in ··· 64 65 preBuild = 66 let 67 libPathsVar = if isDarwin then "DYLD_FALLBACK_LIBRARY_PATH" else "LD_LIBRARY_PATH"; 68 in 69 /* ··· 71 dependencies, which is integrated into the build process of Racket 72 */ 73 '' 74 + for lib_path in $( \ 75 + echo "$NIX_LDFLAGS" \ 76 + | tr ' ' '\n' \ 77 + | grep '^-L' \ 78 + | sed 's/^-L//' \ 79 + | awk '!seen[$0]++' \ 80 + ); do 81 addToSearchPath ${libPathsVar} $lib_path 82 done 83 ''