|
1 |
| -{ pkgs, stdenv, buildPackages, pkgsBuildBuild, ghc, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, haddockBuilder, ghcForComponent, hsPkgs, compiler, runCommand, libffi, gmp, windows, zlib, ncurses, nodejs, nonReinstallablePkgs }@defaults: |
| 1 | +{ pkgs, stdenv, buildPackages, pkgsBuildBuild, ghc, llvmPackages, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, haddockBuilder, ghcForComponent, hsPkgs, compiler, runCommand, libffi, gmp, windows, zlib, ncurses, nodejs, nonReinstallablePkgs }@defaults: |
2 | 2 | lib.makeOverridable (
|
3 | 3 | let self =
|
4 | 4 | { componentId
|
|
383 | 383 | env = shellWrappers.drv;
|
384 | 384 | shell = drv.overrideAttrs (attrs: {
|
385 | 385 | pname = nameOnly + "-shell";
|
386 |
| - inherit (package.identifier) version; |
387 | 386 | nativeBuildInputs = [shellWrappers.drv] ++ attrs.nativeBuildInputs;
|
388 | 387 | });
|
389 | 388 | profiled = lib.makeOverridable self (drvArgs // { enableLibraryProfiling = true; });
|
|
431 | 430 | nativeBuildInputs =
|
432 | 431 | [ghc buildPackages.removeReferencesTo]
|
433 | 432 | ++ executableToolDepends
|
434 |
| - ++ (lib.optional stdenv.hostPlatform.isGhcjs buildPackages.nodejs); |
| 433 | + ++ (lib.optional stdenv.hostPlatform.isGhcjs buildPackages.nodejs) |
| 434 | + ++ (lib.optional (ghc.useLdLld or false) llvmPackages.bintools); |
435 | 435 |
|
436 | 436 | outputs = ["out"]
|
437 | 437 | ++ (lib.optional keepConfigFiles "configFiles")
|
|
448 | 448 | (lib.optionalString stdenv.hostPlatform.isGhcjs ''
|
449 | 449 | export HOME=$(mktemp -d)
|
450 | 450 | export EM_CACHE=$(mktemp -d)
|
| 451 | + if [ -d ${pkgsBuildBuild.emscripten}/share/emscripten/cache ]; then |
| 452 | + cp -r ${pkgsBuildBuild.emscripten}/share/emscripten/cache/* $EM_CACHE/ |
| 453 | + chmod +w -R $EM_CACHE |
| 454 | + fi |
451 | 455 | '') +
|
452 | 456 | (lib.optionalString (!canCleanSource) ''
|
453 | 457 | echo "Cleaning component source not supported, leaving it un-cleaned"
|
|
595 | 599 | (''
|
596 | 600 | if id=$(${target-pkg-and-db} field "z-${package.identifier.name}-z-*" id --simple-output); then
|
597 | 601 | name=$(${target-pkg-and-db} field "z-${package.identifier.name}-z-*" name --simple-output)
|
598 |
| - echo "--dependency=''${name#z-${package.identifier.name}-z-}=$id" >> $out/exactDep/configure-flags |
599 | 602 | echo "package-id $id" >> $out/envDep
|
600 | 603 | ''
|
601 | 604 | # Allow `package-name:sublib-name` to work in `build-depends`
|
|
0 commit comments