summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-08-06 18:45:29 +0200
committerPeter Simons <simons@cryp.to>2015-08-07 15:13:15 +0200
commit50483ce1009e3d2f0dac3ec28409889ecfe48713 (patch)
tree1d85b36e35fb02aa9482230c4fbf3a70100725c0 /pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix
parent89ca308517d32dfa882ccbe43f765ac97885ec39 (diff)
downloadnixpkgs-50483ce1009e3d2f0dac3ec28409889ecfe48713.tar
nixpkgs-50483ce1009e3d2f0dac3ec28409889ecfe48713.tar.gz
nixpkgs-50483ce1009e3d2f0dac3ec28409889ecfe48713.tar.bz2
nixpkgs-50483ce1009e3d2f0dac3ec28409889ecfe48713.tar.lz
nixpkgs-50483ce1009e3d2f0dac3ec28409889ecfe48713.tar.xz
nixpkgs-50483ce1009e3d2f0dac3ec28409889ecfe48713.tar.zst
nixpkgs-50483ce1009e3d2f0dac3ec28409889ecfe48713.zip
haskell-idris: override to add undeclared libgmp build input
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix b/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix
index 4039de13f78..903e92e770a 100644
--- a/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix
+++ b/pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix
@@ -49,9 +49,9 @@ self: super: {
       # "idris" binary cannot find Idris library otherwise while building.
       # After installing it's completely fine though.
       # Seems like Nix-specific issue so not reported.
-      preBuild = ''
-        export LD_LIBRARY_PATH=$PWD/dist/build:$LD_LIBRARY_PATH
-      '';
+      preBuild = "export LD_LIBRARY_PATH=$PWD/dist/build:$LD_LIBRARY_PATH";
+      # add missing libgmp build input
+      librarySystemDepends = (drv.librarySystemDepends or []) ++ [pkgs.gmp];
     });
     in idris'.overrideScope (self: super: {
       zlib = self.zlib_0_5_4_2;