From 1651871250f5071ab13b42468d5612916b2bebf4 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Sun, 18 May 2014 10:14:03 -0500 Subject: [PATCH] jhc: 0.8.0 -> 0.8.1 Also, bootstrap the compiler with GHC 7.6.3 instead of 6.12.3. Signed-off-by: Austin Seipp --- pkgs/development/compilers/jhc/default.nix | 33 +++++++++++----------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/pkgs/development/compilers/jhc/default.nix b/pkgs/development/compilers/jhc/default.nix index d36c8c2755a9..c673d38b76da 100644 --- a/pkgs/development/compilers/jhc/default.nix +++ b/pkgs/development/compilers/jhc/default.nix @@ -1,30 +1,31 @@ -{ - stdenv, fetchurl, perl, ghc, binary, zlib, utf8String, readline, fgl, - regexCompat, HsSyck, random -}: +{ stdenv, fetchurl, perl, ghc, binary, zlib, utf8String, readline, fgl, + regexCompat, HsSyck, random }: stdenv.mkDerivation rec { - name = "jhc-${version}"; - - version = "0.8.0"; + version = "0.8.1"; src = fetchurl { url = "http://repetae.net/dist/${name}.tar.gz"; - sha256 = "0rbv0gpp7glhd9xqy7snbiaiizwnsfg9vzhvyywcvbmb35yivy2a"; + sha256 = "11fya5ggk6q4vcm3kwjacfaaqvkammih25saqwlr1g40bcikbnf2"; }; - buildInputs = [ - perl ghc binary zlib utf8String readline fgl regexCompat HsSyck random - ]; + patchPhase = '' + substituteInPlace ./src/Util/Interact.hs \ + --replace USE_NOLINE USE_READLINE + ''; + + buildInputs = + [ perl ghc binary zlib utf8String + readline fgl regexCompat HsSyck random + ]; meta = { + description = "Whole-program, globally optimizing Haskell compiler"; homepage = "http://repetae.net/computer/jhc/"; - description = "A Haskell compiler which aims to produce the most efficient programs"; - license = stdenv.lib.licenses.gpl2; - + license = stdenv.lib.licenses.bsd; platforms = stdenv.lib.platforms.linux; - maintainers = [ stdenv.lib.maintainers.aforemny stdenv.lib.maintainers.simons ]; + maintainers = with stdenv.lib.maintainers; + [ aforemny simons thoughtpolice ]; }; - } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e120613e2050..0017963dc085 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2852,7 +2852,7 @@ let }; jhc = callPackage ../development/compilers/jhc { - inherit (haskellPackages_ghc6123) ghc binary zlib utf8String readline fgl + inherit (haskellPackages_ghc763) ghc binary zlib utf8String readline fgl regexCompat HsSyck random; };