summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/hoogle.nix
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2019-12-24 18:17:41 -0500
committerJohn Ericson <git@JohnEricson.me>2019-12-24 18:17:41 -0500
commitad93663a485afe830b3d1edb27ae3d3471e6cf99 (patch)
tree80395fa4b4ad31b80116f2aa4334af40c4369670 /pkgs/development/haskell-modules/hoogle.nix
parentd3ecd5bde5682b62728101a3026875aabeb1886d (diff)
downloadnixpkgs-ad93663a485afe830b3d1edb27ae3d3471e6cf99.tar
nixpkgs-ad93663a485afe830b3d1edb27ae3d3471e6cf99.tar.gz
nixpkgs-ad93663a485afe830b3d1edb27ae3d3471e6cf99.tar.bz2
nixpkgs-ad93663a485afe830b3d1edb27ae3d3471e6cf99.tar.lz
nixpkgs-ad93663a485afe830b3d1edb27ae3d3471e6cf99.tar.xz
nixpkgs-ad93663a485afe830b3d1edb27ae3d3471e6cf99.tar.zst
nixpkgs-ad93663a485afe830b3d1edb27ae3d3471e6cf99.zip
ghcWithHoogle: Fix for cross
Use `buildPackages.stdenv.mkDerivation` because we are making a shell
script to start hoogle on the build platform.
Diffstat (limited to 'pkgs/development/haskell-modules/hoogle.nix')
-rw-r--r--pkgs/development/haskell-modules/hoogle.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix
index 0bb930a8bb3..0f620d46ccc 100644
--- a/pkgs/development/haskell-modules/hoogle.nix
+++ b/pkgs/development/haskell-modules/hoogle.nix
@@ -23,7 +23,8 @@
 # This will build mmorph and monadControl, and have the hoogle installation
 # refer to their documentation via symlink so they are not garbage collected.
 
-{ lib, stdenv, hoogle, writeText, ghc
+{ lib, stdenv, buildPackages
+, hoogle, writeText, ghc
 , packages
 }:
 
@@ -53,7 +54,7 @@ let
     (map (lib.getOutput "doc") packages);
 
 in
-stdenv.mkDerivation {
+buildPackages.stdenv.mkDerivation {
   name = "hoogle-local-0.1";
   buildInputs = [ghc hoogle];