2015-04-23 06:20:34 -07:00
|
|
|
{ stdenv, fetchurl, perl, ghcWithPackages }:
|
|
|
|
|
|
|
|
let ghc = ghcWithPackages (hpkgs: with hpkgs; [
|
|
|
|
binary zlib utf8-string readline fgl regex-compat HsSyck random
|
|
|
|
]);
|
|
|
|
in
|
2012-10-07 08:52:43 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "jhc-${version}";
|
2014-08-19 23:43:31 -07:00
|
|
|
version = "0.8.2";
|
2012-10-07 08:52:43 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-19 23:43:31 -07:00
|
|
|
url = "http://repetae.net/dist/${name}.tar.gz";
|
|
|
|
sha256 = "0lrgg698mx6xlrqcylba9z4g1f053chrzc92ri881dmb1knf83bz";
|
2012-10-07 08:52:43 -07:00
|
|
|
};
|
|
|
|
|
2015-04-23 06:20:34 -07:00
|
|
|
buildInputs = [ perl ghc ];
|
2012-10-07 08:52:43 -07:00
|
|
|
|
2016-10-24 15:28:08 -07:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray+=("CC=cc")
|
|
|
|
configureFlagsArray+=("--with-hsc2hs=${ghc}/bin/hsc2hs --cc=cc")
|
|
|
|
'';
|
|
|
|
|
2012-10-07 08:52:43 -07:00
|
|
|
meta = {
|
2014-05-18 08:14:03 -07:00
|
|
|
description = "Whole-program, globally optimizing Haskell compiler";
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = http://repetae.net/computer/jhc/;
|
2014-05-18 08:15:06 -07:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2016-09-08 05:31:42 -07:00
|
|
|
platforms = ["x86_64-linux"]; # 32 bit builds are broken
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ aforemny thoughtpolice ];
|
2017-09-25 01:37:59 -07:00
|
|
|
broken = true; # https://hydra.nixos.org/build/61700723
|
2012-10-07 08:52:43 -07:00
|
|
|
};
|
|
|
|
}
|