uhc: Use Stackage LTS 4.1 to build UHC

This commit is contained in:
Philipp Hausmann 2016-01-29 17:46:56 +01:00
parent e2cefce69a
commit 22506c7bf3
No known key found for this signature in database
GPG Key ID: 7D9D938B2A1BD86C
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
# Note: The Haskell package set used for building UHC is
# determined in the file top-level/haskell-packages.nix.
# We are using Stackage LTS to avoid constant breakage.
# Bump the Stackage LTS release to the last release if possible
# when a new UHC version is released.
{ stdenv, coreutils, fetchgit, m4, libtool, clang, ghcWithPackages }:
let wrappedGhc = ghcWithPackages (hpkgs: with hpkgs; [fgl vector syb uulib network binary hashable uhc-util mtl transformers directory containers array process filepath shuffle uuagc] );
@ -50,8 +55,10 @@ in stdenv.mkDerivation rec {
# On Darwin, the GNU libtool is used, which does not
# support the -static flag and thus breaks the build.
platforms = ["x86_64-linux"];
broken = true; # https://github.com/UU-ComputerScience/uhc/issues/69
# Hydra currently doesn't build the Stackage LTS package set,
# and we don't want to build all our haskell dependencies
# from scratch just to build UHC.
hydraPlatforms = stdenv.lib.platforms.none;
};
}

View File

@ -60,7 +60,10 @@ rec {
uhc = callPackage ../development/compilers/uhc/default.nix ({
stdenv = pkgs.clangStdenv;
inherit (pkgs.haskellPackages) ghcWithPackages;
# UHC 1.1.9.2 is incompatible with hashable 1.2.4.0,
# latest LTS with a compatible hashable is LTS 4.1
# See also https://github.com/UU-ComputerScience/uhc/issues/69
inherit (pkgs.haskell.packages.lts-4_1) ghcWithPackages;
});
};