From 15416dd2eca1bc3d214649b0f034e40a1daee2ab Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 12 Feb 2015 20:15:09 +0100 Subject: [PATCH] Revert "Build GHC HEAD from git checkout". This reverts commit 52c8d7c4ab0b2b2c97faa848b98dfc0ae9b69d7b. The new expression doesn't compile: http://hydra.nixos.org/build/19594431/nixlog/1/raw. --- pkgs/development/compilers/ghc/head.nix | 20 ++++++-------------- pkgs/top-level/haskell-ng.nix | 2 +- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix index 9d7cd4482d2f..cd1c89886291 100644 --- a/pkgs/development/compilers/ghc/head.nix +++ b/pkgs/development/compilers/ghc/head.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, ghc, perl, gmp, ncurses, autoconf, automake, happy, alex }: +{ stdenv, fetchurl, ghc, perl, gmp, ncurses }: let @@ -15,21 +15,13 @@ in stdenv.mkDerivation rec { version = "7.11.20150118"; name = "ghc-${version}"; - rev = "6ff3db92140e3ac8cbda50d1a4aab976350ac8c4"; - src = fetchgit { - url = "git://git.haskell.org/ghc.git"; - inherit rev; - sha256 = "1a1r3nw7x5rd8563770zcg1phm55vi3sxs2zwr91ik026n8jjba6"; + src = fetchurl { + url = "http://deb.haskell.org/dailies/2015-01-18/ghc_${version}.orig.tar.bz2"; + sha256 = "1zy960q2faq03camq2n4834bd748vkc15h83bapswc68dqncqj20"; }; - postUnpack = '' - pushd ghc-${builtins.substring 0 7 rev} - ./boot - popd - ''; - - buildInputs = [ ghc perl autoconf automake happy alex ]; + buildInputs = [ ghc perl ]; preConfigure = '' echo >mk/build.mk "${buildMK}" @@ -47,7 +39,7 @@ stdenv.mkDerivation rec { # required, because otherwise all symbols from HSffi.o are stripped, and # that in turn causes GHCi to abort - stripDebugFlags = [ "-S" ] ++ stdenv.lib.optional (!stdenv.isDarwin) "--keep-file-symbols"; + stripDebugFlags = [ "-S" "--keep-file-symbols" ]; meta = { homepage = "http://haskell.org/ghc"; diff --git a/pkgs/top-level/haskell-ng.nix b/pkgs/top-level/haskell-ng.nix index cdf96879d6ac..220fca90a53f 100644 --- a/pkgs/top-level/haskell-ng.nix +++ b/pkgs/top-level/haskell-ng.nix @@ -18,7 +18,7 @@ rec { ghc763 = callPackage ../development/compilers/ghc/7.6.3.nix { ghc = compiler.ghc704Binary; gmp = pkgs.gmp.override { withStatic = true; }; }; ghc784 = callPackage ../development/compilers/ghc/7.8.4.nix { ghc = compiler.ghc742Binary; gmp = pkgs.gmp.override { withStatic = true; }; }; ghc7101 = callPackage ../development/compilers/ghc/7.10.1.nix { ghc = compiler.ghc784; gmp = pkgs.gmp.override { withStatic = true; }; }; - ghcHEAD = callPackage ../development/compilers/ghc/head.nix { inherit (packages.ghc784) ghc happy alex; gmp = pkgs.gmp.override { withStatic = true; }; }; + ghcHEAD = callPackage ../development/compilers/ghc/head.nix { ghc = compiler.ghc784; gmp = pkgs.gmp.override { withStatic = true; }; }; ghc = compiler.ghc784; };