git.iko.soy/typeable/nixpkgs
on master help sign in
ghc8.6.4: use targetPackages for getting libffi
commit6da1a83d4ddbee4cb54331bf7a0335e1a90f303a authorMatthew Bauer <mjbauer95@gmail.com> dateWed 3 Apr 2019, 16:45 (8 years ago) parente03966a
1 file changed+1−1
pkgs/development/compilers/ghc/8.6.4.nix+1−1
pkgs/development/compilers/ghc/8.6.4.nix+1−1
@@ -155,7 +155,7 @@ stdenv.mkDerivation (rec {
155155 configureFlags = [
156156 "--datadir=$doc/share/doc/ghc"
157157 "--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
158− ] ++ stdenv.lib.optionals (libffi != null) ["--with-system-libffi" "--with-ffi-includes=${libffi.dev}/include" "--with-ffi-libraries=${libffi.out}/lib"
158+ ] ++ stdenv.lib.optionals (libffi != null) ["--with-system-libffi" "--with-ffi-includes=${targetPackages.libffi.dev}/include" "--with-ffi-libraries=${targetPackages.libffi.out}/lib"
159159 ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && !enableIntegerSimple) [
160160 "--with-gmp-includes=${targetPackages.gmp.dev}/include" "--with-gmp-libraries=${targetPackages.gmp.out}/lib"
161161 ] ++ stdenv.lib.optional (targetPlatform == hostPlatform && hostPlatform.libc != "glibc" && !targetPlatform.isWindows) [