f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
53 lines
1.9 KiB
Nix
53 lines
1.9 KiB
Nix
# Note: The Haskell package set used for building UHC is
|
|
# determined in the file top-level/haskell-packages.nix.
|
|
{ stdenv, coreutils, m4, libtool, clang, ghcWithPackages, fetchFromGitHub }:
|
|
|
|
let wrappedGhc = ghcWithPackages (hpkgs: with hpkgs; [fgl vector syb uulib network binary hashable uhc-util mtl transformers directory containers array process filepath shuffle uuagc] );
|
|
in stdenv.mkDerivation rec {
|
|
version = "1.1.9.4";
|
|
name = "uhc-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "UU-ComputerScience";
|
|
repo = "uhc";
|
|
rev = "v${version}";
|
|
sha256 = "1s84csk6zgzj09igxgdza7gb52jdn3jsr8lygl5xplshv8yzl34n";
|
|
};
|
|
|
|
postUnpack = "sourceRoot=\${sourceRoot}/EHC";
|
|
|
|
buildInputs = [ m4 wrappedGhc clang libtool ];
|
|
|
|
configureFlags = [ "--with-gcc=${clang}/bin/clang" ];
|
|
|
|
# UHC builds packages during compilation; these are by default
|
|
# installed in the user-specific package config file. We do not
|
|
# want that, and hack the build process to use a temporary package
|
|
# configuration file instead.
|
|
preConfigure = ''
|
|
p=`pwd`/uhc-local-packages/
|
|
ghc-pkg init $p
|
|
sed -i "s|--user|--package-db=$p|g" mk/shared.mk.in
|
|
sed -i "s|-fglasgow-exts|-fglasgow-exts -package-conf=$p|g" mk/shared.mk.in
|
|
sed -i "s|/bin/date|${coreutils}/bin/date|g" mk/dist.mk
|
|
sed -i "s|/bin/date|${coreutils}/bin/date|g" mk/config.mk.in
|
|
sed -i "s|--make|--make -package-db=$p|g" src/ehc/files2.mk
|
|
sed -i "s|--make|--make -package-db=$p|g" src/gen/files.mk
|
|
'';
|
|
|
|
inherit clang;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.cs.uu.nl/wiki/UHC;
|
|
description = "Utrecht Haskell Compiler";
|
|
maintainers = [ maintainers.phile314 ];
|
|
|
|
# UHC i686 support is broken, see
|
|
# https://github.com/UU-ComputerScience/uhc/issues/52
|
|
#
|
|
# Darwin build is broken as well at the moment.
|
|
# On Darwin, the GNU libtool is used, which does not
|
|
# support the -static flag and thus breaks the build.
|
|
platforms = ["x86_64-linux"];
|
|
};
|
|
}
|