on iko/ghcjs-patch-master help sign in
add mappings, which were dropped from stackage.nix
commit61bf3837918daa16750414c93a35b1de4ee6f7ce authorMoritz Angermann <moritz.angermann@gmail.com> dateSun 29 Jul 2018, 21:22 (8 years ago) parent04d1e36
1 file changed+30−2
compat/driver.nix+30−2
compat/driver.nix+30−2
@@ -22,7 +22,35 @@ with rec {
2222 hsPkgs = pkgs.haskellPackages // { ${e.package.identifier.name} = null; };
2323 # We also need to do some system pkgs -> haskell pkgs
2424 # resolution.
25− pkgs = pkgs // { };
25+ pkgs = pkgs
26+ # fetchgit should always come from the buildPackages
27+ # if it comes from the targetPackages we won't even
28+ # be able to execute it.
29+ // { fetchgit = pkgs.buildPackages.fetchgit; }
30+ # haskell lib -> nix lib mapping
31+ // { crypto = pkgs.openssl;
32+ "c++" = null; # no libc++
33+ ssl = pkgs.openssl;
34+ z = pkgs.zlib;
35+ pthread = null; # available by default
36+ }
37+ # -- windows
38+ // { advapi32 = null; gdi32 = null; imm32 = null; msimg32 = null;
39+ shell32 = null; shfolder = null; shlwapi = null; user32 = null;
40+ winmm = null;
41+ kernel32 = null; ws2_32 = null;
42+
43+ ssl32 = null; eay32 = pkgs.openssl;
44+
45+ iphlpapi = null; # IP Help API
46+
47+ msvcrt = null; # this is the libc
48+
49+ Crypt32 = null;
50+ }
51+ # -- os x
52+ // pkgs.darwin.apple_sdk.frameworks;
53+
2654 # package-conf mappings.
2755 # pkgconfig name -> nix package
2856 pkgconfPkgs = { libpcre = pkgs.pcre; };
@@ -64,7 +92,7 @@ let expr = expr0 flags;
6492 } // pkgs.lib.optionalAttrs (builtins.hasAttr pname expr.components) {
6593 libraryHaskellDepends = expr.components.${pname}.depends or [];
6694 libraryPkgconfigDepends = expr.components.${pname}.pkgconfig or [];
67− librarySystemDepends = expr.components.${pname}.libs or [];
95+ librarySystemDepends = (expr.components.${pname}.libs or []) ++ pkgs.lib.optionals (os == "Osx") (expr.components.${pname}.frameworks or []);
6896 libraryToolDepends = expr.components.${pname}.build-tools or [];
6997 } // pkgs.lib.optionalAttrs (builtins.hasAttr "exes" expr.components) {
7098 executableHaskellDepends = collectAttr "depends" expr.components.exes;