git.iko.soy/typeable/nixpkgs
on master help sign in
jhc: convert build to Haskell NG
commita1865004172bace7342d1d3b0f76392dc29d5075 authorPeter Simons <simons@cryp.to> dateThu 23 Apr 2015, 15:20 (12 years ago) parent7299118
2 files changed+8−8
pkgs/development/compilers/jhc/default.nix+7−6 pkgs/top-level/all-packages.nix+1−2
pkgs/development/compilers/jhc/default.nix+7−6
@@ -1,5 +1,9 @@
1−{ stdenv, fetchurl, perl, ghc, binary, zlib, utf8String, readline, fgl,
2− regexCompat, HsSyck, random }:
1+{ stdenv, fetchurl, perl, ghcWithPackages }:
2+
3+let ghc = ghcWithPackages (hpkgs: with hpkgs; [
4+ binary zlib utf8-string readline fgl regex-compat HsSyck random
5+ ]);
6+in
37
48stdenv.mkDerivation rec {
59 name = "jhc-${version}";
@@ -10,10 +14,7 @@ stdenv.mkDerivation rec {
1014 sha256 = "0lrgg698mx6xlrqcylba9z4g1f053chrzc92ri881dmb1knf83bz";
1115 };
1216
13− buildInputs =
14− [ perl ghc binary zlib utf8String
15− readline fgl regexCompat HsSyck random
16− ];
17+ buildInputs = [ perl ghc ];
1718
1819 meta = {
1920 description = "Whole-program, globally optimizing Haskell compiler";
pkgs/top-level/all-packages.nix+1−2
@@ -3744,8 +3744,7 @@ let
37443744 };
37453745
37463746 jhc = callPackage ../development/compilers/jhc {
3747− inherit (haskellPackages_ghc763) ghc binary zlib utf8String readline fgl
3748− regexCompat HsSyck random;
3747+ inherit (haskell.packages.ghc763) ghcWithPackages;
37493748 };
37503749
37513750 uhc = callPackage ../development/compilers/uhc/default.nix ({