git.iko.soy/typeable/nixpkgs
on master help sign in
ghc 8.4.2, head: Drop `libiconv` on windows.

nixpkgs#37012 and nixpkgs#37707 introduces the setup-hooks for libiconv, which inject `-liconv` into the `NIX_LDFLAGS`. This breaks horribly on windows where the linker end up having no idea how to linke `-liconv`. The configure.ac file specifically ignores libiconv on windows.

commitfe1eec9e24ba24f468649c14529be9d7a7c720d4 authorMoritz Angermann <moritz.angermann@gmail.com> dateThu 3 May 2018, 13:54 (9 years ago) parentc7458de
2 files changed+4−4
pkgs/development/compilers/ghc/8.4.2.nix+2−2 pkgs/development/compilers/ghc/head.nix+2−2
pkgs/development/compilers/ghc/8.4.2.nix+2−2
@@ -65,7 +65,7 @@ let
6565 # Splicer will pull out correct variations
6666 libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ]
6767 ++ stdenv.lib.optional (!enableIntegerSimple) gmp
68− ++ stdenv.lib.optional (platform.libc != "glibc") libiconv;
68+ ++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;
6969
7070 toolsForTarget =
7171 if hostPlatform == buildPlatform then
@@ -134,7 +134,7 @@ stdenv.mkDerivation rec {
134134 "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
135135 ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && ! enableIntegerSimple) [
136136 "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib"
137− ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc") [
137+ ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc" && !targetPlatform.isWindows) [
138138 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
139139 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
140140 "--enable-bootstrap-with-devel-snapshot"
pkgs/development/compilers/ghc/head.nix+2−2
@@ -66,7 +66,7 @@ let
6666 # Splicer will pull out correct variations
6767 libDeps = platform: stdenv.lib.optional enableTerminfo [ ncurses ]
6868 ++ stdenv.lib.optional (!enableIntegerSimple) gmp
69− ++ stdenv.lib.optional (platform.libc != "glibc") libiconv;
69+ ++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;
7070
7171 toolsForTarget =
7272 if hostPlatform == buildPlatform then
@@ -132,7 +132,7 @@ stdenv.mkDerivation rec {
132132 "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
133133 ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && ! enableIntegerSimple) [
134134 "--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib"
135− ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc") [
135+ ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc" && !targetPlatform.isWindows) [
136136 "--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
137137 ] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
138138 "--enable-bootstrap-with-devel-snapshot"