···11# Note: The Haskell package set used for building UHC is
22# determined in the file top-level/haskell-packages.nix.
33-# We are using Stackage LTS to avoid constant breakage.
44-# Bump the Stackage LTS release to the last release if possible
55-# when a new UHC version is released.
66-{ stdenv, coreutils, fetchgit, m4, libtool, clang, ghcWithPackages }:
33+{ stdenv, coreutils, m4, libtool, clang, ghcWithPackages, fetchFromGitHub }:
7485let wrappedGhc = ghcWithPackages (hpkgs: with hpkgs; [fgl vector syb uulib network binary hashable uhc-util mtl transformers directory containers array process filepath shuffle uuagc] );
96in stdenv.mkDerivation rec {
1010- # Important:
1111- # The commits "Fixate/tag v..." are the released versions.
1212- # Ignore the "bumped version to ...." commits, they do not
1313- # correspond to releases.
1414- version = "1.1.9.2";
77+ version = "1.1.9.3";
158 name = "uhc-${version}";
1691717- src = fetchgit {
1818- url = "https://github.com/UU-ComputerScience/uhc.git";
1919- rev = "292d259113b98c32154a5be336875751caa5edbc";
2020- sha256 = "1f462xq9ilkp9mnxm8hxhh1cdwps5d0hxysyibxryk32l7hh53cz";
1010+ src = fetchFromGitHub {
1111+ owner = "UU-ComputerScience";
1212+ repo = "uhc";
1313+ rev = "v${version}";
1414+ sha256 = "1r3mja77dqj2ncgp1d9nnc7dhp3gzrb1b1qvml3rq2321mn3m2ad";
2115 };
22162317 postUnpack = "sourceRoot=\${sourceRoot}/EHC";
···5549 # On Darwin, the GNU libtool is used, which does not
5650 # support the -static flag and thus breaks the build.
5751 platforms = ["x86_64-linux"];
5858- # Hydra currently doesn't build the Stackage LTS package set,
5959- # and we don't want to build all our haskell dependencies
6060- # from scratch just to build UHC.
6161- hydraPlatforms = stdenv.lib.platforms.none;
6262-6352 };
6453}
+1-4
pkgs/top-level/haskell-packages.nix
···65656666 uhc = callPackage ../development/compilers/uhc/default.nix ({
6767 stdenv = pkgs.clangStdenv;
6868- # UHC 1.1.9.2 is incompatible with hashable 1.2.4.0,
6969- # latest LTS with a compatible hashable is LTS 4.1
7070- # See also https://github.com/UU-ComputerScience/uhc/issues/69
7171- inherit (pkgs.haskell.packages.lts-4_1) ghcWithPackages;
6868+ inherit (pkgs.haskellPackages) ghcWithPackages;
7269 });
73707471 };