File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 290
290
291
291
ghcSrc = ghc . raw-src or ghc . buildGHC . raw-src ;
292
292
293
- fixPlatformString = x : builtins . replaceStrings [ "-linux-gnu" ] [ "-linux" ] x ;
293
+ platformString = p : with p . parsed ; " ${ cpu . name } - ${ vendor . name } - ${ kernel . name } " ;
294
294
295
295
# Dummy `ghc` that uses the captured output
296
296
dummy-ghc = evalPackages . writeTextFile {
@@ -341,10 +341,10 @@ let
341
341
then "ArchJavaScript"
342
342
else throw "Unknown target arch ${ pkgs . stdenv . targetPlatform . config } "
343
343
} ")'
344
- echo ',("target platform string","${ fixPlatformString pkgs . stdenv . targetPlatform . config } ")'
345
- echo ',("Build platform","${ fixPlatformString pkgs . stdenv . buildPlatform . config } ")'
346
- echo ',("Host platform","${ fixPlatformString pkgs . stdenv . hostPlatform . config } ")'
347
- echo ',("Target platform","${ fixPlatformString pkgs . stdenv . targetPlatform . config } ")'
344
+ echo ',("target platform string","${ platformString pkgs . stdenv . targetPlatform } ")'
345
+ echo ',("Build platform","${ platformString pkgs . stdenv . buildPlatform } ")'
346
+ echo ',("Host platform","${ platformString pkgs . stdenv . hostPlatform } ")'
347
+ echo ',("Target platform","${ platformString pkgs . stdenv . targetPlatform } ")'
348
348
echo ']'
349
349
;;
350
350
--print-libdir*)
You can’t perform that action at this time.
0 commit comments