about summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2016-12-24 17:37:04 +0000
committerMatthew Pickering <matthewtpickering@gmail.com>2016-12-26 13:27:33 +0000
commit0cd5ebb48fd89c94117e897239a638972181a8e8 (patch)
treed1e900fb3309ebbc33382922255c1597699d0ce3 /pkgs/development/compilers/ghc
parent2876b31ed5fa5234366814ae3d44f1e3d7c42975 (diff)
downloadnixlib-0cd5ebb48fd89c94117e897239a638972181a8e8.tar
nixlib-0cd5ebb48fd89c94117e897239a638972181a8e8.tar.gz
nixlib-0cd5ebb48fd89c94117e897239a638972181a8e8.tar.bz2
nixlib-0cd5ebb48fd89c94117e897239a638972181a8e8.tar.lz
nixlib-0cd5ebb48fd89c94117e897239a638972181a8e8.tar.xz
nixlib-0cd5ebb48fd89c94117e897239a638972181a8e8.tar.zst
nixlib-0cd5ebb48fd89c94117e897239a638972181a8e8.zip
Configure checkPhase for ghcHEAD
The testsuite requires python3 so we have to add it as a dependency.
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/head.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix
index 7573451695c3..8cecb4d605b5 100644
--- a/pkgs/development/compilers/ghc/head.nix
+++ b/pkgs/development/compilers/ghc/head.nix
@@ -1,11 +1,11 @@
 { stdenv, fetchgit, bootPkgs, perl, gmp, ncurses, libiconv, binutils, coreutils
-, autoconf, automake, happy, alex, crossSystem, selfPkgs, cross ? null
+, autoconf, automake, happy, alex, python3, crossSystem, selfPkgs, cross ? null
 }:
 
 let
   inherit (bootPkgs) ghc;
 
-  commonBuildInputs = [ ghc perl autoconf automake happy alex ];
+  commonBuildInputs = [ ghc perl autoconf automake happy alex python3 ];
 
   version = "8.1.20161115";
 
@@ -52,6 +52,8 @@ in stdenv.mkDerivation (rec {
   # that in turn causes GHCi to abort
   stripDebugFlags = [ "-S" ] ++ stdenv.lib.optional (!stdenv.isDarwin) "--keep-file-symbols";
 
+  checkTarget = "test";
+
   postInstall = ''
     paxmark m $out/lib/${name}/bin/{ghc,haddock}