mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
Merge pull request #178674 from NixOS/haskell-updates
haskellPackages: update stackage and hackage
This commit is contained in:
commit
6f7f655d46
@ -1,6 +1,6 @@
|
||||
{
|
||||
"commit": "3871a68d11673db568acc232f35f8ffd28b63832",
|
||||
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/3871a68d11673db568acc232f35f8ffd28b63832.tar.gz",
|
||||
"sha256": "0fbj5353ni22b7vbfn5b9k5lq78i3aanx2njj6kac7qyiazrdck2",
|
||||
"msg": "Update from Hackage at 2022-06-17T13:13:15Z"
|
||||
"commit": "c87d8bf669c0f5da46e44dece7a851e2f9d8c3e9",
|
||||
"url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/c87d8bf669c0f5da46e44dece7a851e2f9d8c3e9.tar.gz",
|
||||
"sha256": "0m1ahg2knm136g2gr66asicsqcy9n80lmszs70nkz550ll51vq8v",
|
||||
"msg": "Update from Hackage at 2022-06-23T03:01:47Z"
|
||||
}
|
||||
|
448
pkgs/development/compilers/ghc/9.2.2-binary.nix
Normal file
448
pkgs/development/compilers/ghc/9.2.2-binary.nix
Normal file
@ -0,0 +1,448 @@
|
||||
{ lib, stdenv
|
||||
, fetchurl, perl, gcc
|
||||
, ncurses5
|
||||
, ncurses6, gmp, libiconv, numactl, libffi
|
||||
, llvmPackages
|
||||
, coreutils
|
||||
, targetPackages
|
||||
|
||||
# minimal = true; will remove files that aren't strictly necessary for
|
||||
# regular builds and GHC bootstrapping.
|
||||
# This is "useful" for staying within hydra's output limits for at least the
|
||||
# aarch64-linux architecture.
|
||||
, minimal ? false
|
||||
}:
|
||||
|
||||
# Prebuilt only does native
|
||||
assert stdenv.targetPlatform == stdenv.hostPlatform;
|
||||
|
||||
let
|
||||
downloadsUrl = "https://downloads.haskell.org/ghc";
|
||||
|
||||
# Copy sha256 from https://downloads.haskell.org/~ghc/9.2.2/SHA256SUMS
|
||||
version = "9.2.2";
|
||||
|
||||
# Information about available bindists that we use in the build.
|
||||
#
|
||||
# # Bindist library checking
|
||||
#
|
||||
# The field `archSpecificLibraries` also provides a way for us get notified
|
||||
# early when the upstream bindist changes its dependencies (e.g. because a
|
||||
# newer Debian version is used that uses a new `ncurses` version).
|
||||
#
|
||||
# Usage:
|
||||
#
|
||||
# * You can find the `fileToCheckFor` of libraries by running `readelf -d`
|
||||
# on the compiler binary (`exePathForLibraryCheck`).
|
||||
# * To skip library checking for an architecture,
|
||||
# set `exePathForLibraryCheck = null`.
|
||||
# * To skip file checking for a specific arch specfic library,
|
||||
# set `fileToCheckFor = null`.
|
||||
ghcBinDists = {
|
||||
# Binary distributions for the default libc (e.g. glibc, or libSystem on Darwin)
|
||||
# nixpkgs uses for the respective system.
|
||||
defaultLibc = {
|
||||
i686-linux = {
|
||||
variantSuffix = "";
|
||||
src = {
|
||||
url = "${downloadsUrl}/${version}/ghc-${version}-i386-deb9-linux.tar.xz";
|
||||
sha256 = "24234486ed4508161c6f88f4750a36d38b135b0c6e5fe78efe2d85c612ecaf9e";
|
||||
};
|
||||
exePathForLibraryCheck = "ghc/stage2/build/tmp/ghc-stage2";
|
||||
archSpecificLibraries = [
|
||||
{ nixPackage = gmp; fileToCheckFor = null; }
|
||||
# The i686-linux bindist provided by GHC HQ is currently built on Debian 9,
|
||||
# which link it against `libtinfo.so.5` (ncurses 5).
|
||||
# Other bindists are linked `libtinfo.so.6` (ncurses 6).
|
||||
{ nixPackage = ncurses5; fileToCheckFor = "libtinfo.so.5"; }
|
||||
];
|
||||
};
|
||||
x86_64-linux = {
|
||||
variantSuffix = "";
|
||||
src = {
|
||||
url = "${downloadsUrl}/${version}/ghc-${version}-x86_64-deb10-linux.tar.xz";
|
||||
sha256 = "fb61dea556a2023dc2d50ee61a22144bb23e4229a378e533065124c218f40cfc";
|
||||
};
|
||||
exePathForLibraryCheck = "ghc/stage2/build/tmp/ghc-stage2";
|
||||
archSpecificLibraries = [
|
||||
{ nixPackage = gmp; fileToCheckFor = null; }
|
||||
{ nixPackage = ncurses6; fileToCheckFor = "libtinfo.so.6"; }
|
||||
];
|
||||
};
|
||||
armv7l-linux = {
|
||||
variantSuffix = "";
|
||||
src = {
|
||||
url = "${downloadsUrl}/${version}/ghc-${version}-armv7-deb10-linux.tar.xz";
|
||||
sha256 = "ce5a7c3beb19d8c13a9e60bd39d3ba8ef0060b954ea42eb23f1ef8d077fa9e8b";
|
||||
};
|
||||
exePathForLibraryCheck = "ghc/stage2/build/tmp/ghc-stage2";
|
||||
archSpecificLibraries = [
|
||||
{ nixPackage = gmp; fileToCheckFor = null; }
|
||||
{ nixPackage = ncurses6; fileToCheckFor = "libtinfo.so.6"; }
|
||||
];
|
||||
};
|
||||
aarch64-linux = {
|
||||
variantSuffix = "";
|
||||
src = {
|
||||
url = "${downloadsUrl}/${version}/ghc-${version}-aarch64-deb10-linux.tar.xz";
|
||||
sha256 = "f3621ccba7ae48fcd67a9505f61bb5ccfb05c4cbfecd5a6ea65fe3f150af0e98";
|
||||
};
|
||||
exePathForLibraryCheck = "ghc/stage2/build/tmp/ghc-stage2";
|
||||
archSpecificLibraries = [
|
||||
{ nixPackage = gmp; fileToCheckFor = null; }
|
||||
{ nixPackage = ncurses6; fileToCheckFor = "libtinfo.so.6"; }
|
||||
{ nixPackage = numactl; fileToCheckFor = null; }
|
||||
];
|
||||
};
|
||||
x86_64-darwin = {
|
||||
variantSuffix = "";
|
||||
src = {
|
||||
url = "${downloadsUrl}/${version}/ghc-${version}-x86_64-apple-darwin.tar.xz";
|
||||
sha256 = "934abbd6083d3aeb5ff081955682d7711d9e79db57b1613eb229c325dd06f83f";
|
||||
};
|
||||
exePathForLibraryCheck = null; # we don't have a library check for darwin yet
|
||||
archSpecificLibraries = [
|
||||
{ nixPackage = gmp; fileToCheckFor = null; }
|
||||
{ nixPackage = ncurses6; fileToCheckFor = null; }
|
||||
{ nixPackage = libiconv; fileToCheckFor = null; }
|
||||
];
|
||||
};
|
||||
aarch64-darwin = {
|
||||
variantSuffix = "";
|
||||
src = {
|
||||
url = "${downloadsUrl}/${version}/ghc-${version}-aarch64-apple-darwin.tar.xz";
|
||||
sha256 = "d1f04f7cc062ed134f863305c67dfe2c42df46ed658dd34f9dd552186f194e5c";
|
||||
};
|
||||
exePathForLibraryCheck = null; # we don't have a library check for darwin yet
|
||||
archSpecificLibraries = [
|
||||
{ nixPackage = gmp; fileToCheckFor = null; }
|
||||
{ nixPackage = ncurses6; fileToCheckFor = null; }
|
||||
{ nixPackage = libiconv; fileToCheckFor = null; }
|
||||
];
|
||||
};
|
||||
};
|
||||
# Binary distributions for the musl libc for the respective system.
|
||||
musl = {
|
||||
x86_64-linux = {
|
||||
variantSuffix = "-musl";
|
||||
src = {
|
||||
url = "${downloadsUrl}/${version}/ghc-${version}-x86_64-alpine3.12-linux-gmp.tar.xz";
|
||||
sha256 = "624523826e24eae33c03490267cddecc1d80c047f2a3f4b03580f1040112d5c0";
|
||||
};
|
||||
isStatic = true;
|
||||
# We can't check the RPATH for statically linked executable
|
||||
exePathForLibraryCheck = null;
|
||||
archSpecificLibraries = [
|
||||
{ nixPackage = gmp.override { withStatic = true; }; fileToCheckFor = null; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
distSetName = if stdenv.hostPlatform.isMusl then "musl" else "defaultLibc";
|
||||
|
||||
binDistUsed = ghcBinDists.${distSetName}.${stdenv.hostPlatform.system}
|
||||
or (throw "cannot bootstrap GHC on this platform ('${stdenv.hostPlatform.system}' with libc '${distSetName}')");
|
||||
|
||||
gmpUsed = (builtins.head (
|
||||
builtins.filter (
|
||||
drv: lib.hasPrefix "gmp" (drv.nixPackage.name or "")
|
||||
) binDistUsed.archSpecificLibraries
|
||||
)).nixPackage;
|
||||
|
||||
# GHC has other native backends (like PowerPC), but here only the ones
|
||||
# we ship bindists for matter.
|
||||
useLLVM = !(stdenv.targetPlatform.isx86
|
||||
|| (stdenv.targetPlatform.isAarch64 && stdenv.targetPlatform.isDarwin));
|
||||
|
||||
libPath =
|
||||
lib.makeLibraryPath (
|
||||
# Add arch-specific libraries.
|
||||
map ({ nixPackage, ... }: nixPackage) binDistUsed.archSpecificLibraries
|
||||
);
|
||||
|
||||
libEnvVar = lib.optionalString stdenv.hostPlatform.isDarwin "DY"
|
||||
+ "LD_LIBRARY_PATH";
|
||||
|
||||
runtimeDeps = [
|
||||
targetPackages.stdenv.cc
|
||||
targetPackages.stdenv.cc.bintools
|
||||
coreutils # for cat
|
||||
]
|
||||
++ lib.optionals useLLVM [
|
||||
(lib.getBin llvmPackages.llvm)
|
||||
]
|
||||
# On darwin, we need unwrapped bintools as well (for otool)
|
||||
++ lib.optionals (stdenv.targetPlatform.linker == "cctools") [
|
||||
targetPackages.stdenv.cc.bintools.bintools
|
||||
];
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
inherit version;
|
||||
pname = "ghc-binary${binDistUsed.variantSuffix}";
|
||||
|
||||
src = fetchurl binDistUsed.src;
|
||||
|
||||
nativeBuildInputs = [ perl ];
|
||||
|
||||
# Set LD_LIBRARY_PATH or equivalent so that the programs running as part
|
||||
# of the bindist installer can find the libraries they expect.
|
||||
# Cannot patchelf beforehand due to relative RPATHs that anticipate
|
||||
# the final install location.
|
||||
${libEnvVar} = libPath;
|
||||
|
||||
postUnpack =
|
||||
# Verify our assumptions of which `libtinfo.so` (ncurses) version is used,
|
||||
# so that we know when ghc bindists upgrade that and we need to update the
|
||||
# version used in `libPath`.
|
||||
lib.optionalString
|
||||
(binDistUsed.exePathForLibraryCheck != null)
|
||||
# Note the `*` glob because some GHCs have a suffix when unpacked, e.g.
|
||||
# the musl bindist has dir `ghc-VERSION-x86_64-unknown-linux/`.
|
||||
# As a result, don't shell-quote this glob when splicing the string.
|
||||
(let buildExeGlob = ''ghc-${version}*/"${binDistUsed.exePathForLibraryCheck}"''; in
|
||||
lib.concatStringsSep "\n" [
|
||||
(''
|
||||
echo "Checking that ghc binary exists in bindist at ${buildExeGlob}"
|
||||
if ! test -e ${buildExeGlob}; then
|
||||
echo >&2 "GHC binary ${binDistUsed.exePathForLibraryCheck} could not be found in the bindist build directory (at ${buildExeGlob}) for arch ${stdenv.hostPlatform.system}, please check that ghcBinDists correctly reflect the bindist dependencies!"; exit 1;
|
||||
fi
|
||||
'')
|
||||
(lib.concatMapStringsSep
|
||||
"\n"
|
||||
({ fileToCheckFor, nixPackage }:
|
||||
lib.optionalString (fileToCheckFor != null) ''
|
||||
echo "Checking bindist for ${fileToCheckFor} to ensure that is still used"
|
||||
if ! readelf -d ${buildExeGlob} | grep "${fileToCheckFor}"; then
|
||||
echo >&2 "File ${fileToCheckFor} could not be found in ${binDistUsed.exePathForLibraryCheck} for arch ${stdenv.hostPlatform.system}, please check that ghcBinDists correctly reflect the bindist dependencies!"; exit 1;
|
||||
fi
|
||||
|
||||
echo "Checking that the nix package ${nixPackage} contains ${fileToCheckFor}"
|
||||
if ! test -e "${lib.getLib nixPackage}/lib/${fileToCheckFor}"; then
|
||||
echo >&2 "Nix package ${nixPackage} did not contain ${fileToCheckFor} for arch ${stdenv.hostPlatform.system}, please check that ghcBinDists correctly reflect the bindist dependencies!"; exit 1;
|
||||
fi
|
||||
''
|
||||
)
|
||||
binDistUsed.archSpecificLibraries
|
||||
)
|
||||
])
|
||||
# GHC has dtrace probes, which causes ld to try to open /usr/lib/libdtrace.dylib
|
||||
# during linking
|
||||
+ lib.optionalString stdenv.isDarwin ''
|
||||
export NIX_LDFLAGS+=" -no_dtrace_dof"
|
||||
# not enough room in the object files for the full path to libiconv :(
|
||||
for exe in $(find . -type f -executable); do
|
||||
isScript $exe && continue
|
||||
ln -fs ${libiconv}/lib/libiconv.dylib $(dirname $exe)/libiconv.dylib
|
||||
install_name_tool -change /usr/lib/libiconv.2.dylib @executable_path/libiconv.dylib -change /usr/local/lib/gcc/6/libgcc_s.1.dylib ${gcc.cc.lib}/lib/libgcc_s.1.dylib $exe
|
||||
done
|
||||
'' +
|
||||
|
||||
# Some scripts used during the build need to have their shebangs patched
|
||||
''
|
||||
patchShebangs ghc-${version}/utils/
|
||||
patchShebangs ghc-${version}/configure
|
||||
'' +
|
||||
# We have to patch the GMP paths for the integer-gmp package.
|
||||
''
|
||||
find . -name ghc-bignum.buildinfo \
|
||||
-exec sed -i "s@extra-lib-dirs: @extra-lib-dirs: ${lib.getLib gmpUsed}/lib@" {} \;
|
||||
|
||||
# we need to modify the package db directly for hadrian bindists
|
||||
find . -name 'ghc-bignum*.conf' \
|
||||
-exec sed -e '/^[a-z-]*library-dirs/a \ ${lib.getLib gmpUsed}/lib' -i {} \;
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
# we need to modify the package db directly for hadrian bindists
|
||||
# (all darwin bindists are hadrian-based for 9.2.2)
|
||||
find . -name 'base*.conf' \
|
||||
-exec sed -e '/^[a-z-]*library-dirs/a \ ${lib.getLib libiconv}/lib' -i {} \;
|
||||
|
||||
# To link RTS in the end we also need libffi now
|
||||
find . -name 'rts*.conf' \
|
||||
-exec sed -e '/^[a-z-]*library-dirs/a \ ${lib.getLib libffi}/lib' \
|
||||
-e 's@/Library/Developer/.*/usr/include/ffi@${lib.getDev libffi}/include@' \
|
||||
-i {} \;
|
||||
'' +
|
||||
# aarch64 does HAVE_NUMA so -lnuma requires it in library-dirs in rts/package.conf.in
|
||||
# FFI_LIB_DIR is a good indication of places it must be needed.
|
||||
lib.optionalString (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) ''
|
||||
find . -name package.conf.in \
|
||||
-exec sed -i "s@FFI_LIB_DIR@FFI_LIB_DIR ${numactl.out}/lib@g" {} \;
|
||||
'' +
|
||||
# Rename needed libraries and binaries, fix interpreter
|
||||
lib.optionalString stdenv.isLinux ''
|
||||
find . -type f -executable -exec patchelf \
|
||||
--interpreter ${stdenv.cc.bintools.dynamicLinker} {} \;
|
||||
'' +
|
||||
# The hadrian install Makefile uses 'xxx' as a temporary placeholder in path
|
||||
# substitution. Which can break the build if the store path / prefix happens
|
||||
# to contain this string. This will be fixed with 9.2.3 bindists.
|
||||
# https://gitlab.haskell.org/ghc/ghc/-/issues/21402
|
||||
''
|
||||
# Detect hadrian Makefile by checking for the target that has the problem
|
||||
if grep '^update_package_db' ghc-${version}*/Makefile > /dev/null; then
|
||||
echo Hadrian bindist, applying workaround for xxx path substitution.
|
||||
# based on https://gitlab.haskell.org/ghc/ghc/-/commit/dd5fecb0e2990b192d92f4dfd7519ecb33164fad.patch
|
||||
substituteInPlace ghc-${version}*/Makefile --replace 'xxx' '\0xxx\0'
|
||||
else
|
||||
echo Not a hadrian bindist, not applying xxx path workaround.
|
||||
fi
|
||||
'';
|
||||
|
||||
# fix for `configure: error: Your linker is affected by binutils #16177`
|
||||
preConfigure = lib.optionalString
|
||||
stdenv.targetPlatform.isAarch32
|
||||
"LD=ld.gold";
|
||||
|
||||
configurePlatforms = [ ];
|
||||
configureFlags = [
|
||||
"--with-gmp-includes=${lib.getDev gmpUsed}/include"
|
||||
# Note `--with-gmp-libraries` does nothing for GHC bindists:
|
||||
# https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6124
|
||||
] ++ lib.optional stdenv.isDarwin "--with-gcc=${./gcc-clang-wrapper.sh}"
|
||||
# From: https://github.com/NixOS/nixpkgs/pull/43369/commits
|
||||
++ lib.optional stdenv.hostPlatform.isMusl "--disable-ld-override";
|
||||
|
||||
# No building is necessary, but calling make without flags ironically
|
||||
# calls install-strip ...
|
||||
dontBuild = true;
|
||||
|
||||
# Patch scripts to include runtime dependencies in $PATH.
|
||||
postInstall = ''
|
||||
for i in "$out/bin/"*; do
|
||||
test ! -h "$i" || continue
|
||||
isScript "$i" || continue
|
||||
sed -i -e '2i export PATH="${lib.makeBinPath runtimeDeps}:$PATH"' "$i"
|
||||
done
|
||||
'';
|
||||
|
||||
# Apparently necessary for the ghc Alpine (musl) bindist:
|
||||
# When we strip, and then run the
|
||||
# patchelf --set-rpath "${libPath}:$(patchelf --print-rpath $p)" $p
|
||||
# below, running ghc (e.g. during `installCheckPhase)` gives some apparently
|
||||
# corrupted rpath or whatever makes the loader work on nonsensical strings:
|
||||
# running install tests
|
||||
# Error relocating /nix/store/...-ghc-8.10.2-binary/lib/ghc-8.10.5/bin/ghc: : symbol not found
|
||||
# Error relocating /nix/store/...-ghc-8.10.2-binary/lib/ghc-8.10.5/bin/ghc: ir6zf6c9f86pfx8sr30n2vjy-ghc-8.10.2-binary/lib/ghc-8.10.5/bin/../lib/x86_64-linux-ghc-8.10.5/libHSexceptions-0.10.4-ghc8.10.5.so: symbol not found
|
||||
# Error relocating /nix/store/...-ghc-8.10.2-binary/lib/ghc-8.10.5/bin/ghc: y/lib/ghc-8.10.5/bin/../lib/x86_64-linux-ghc-8.10.5/libHStemplate-haskell-2.16.0.0-ghc8.10.5.so: symbol not found
|
||||
# Error relocating /nix/store/...-ghc-8.10.2-binary/lib/ghc-8.10.5/bin/ghc: 8.10.5/libHStemplate-haskell-2.16.0.0-ghc8.10.5.so: symbol not found
|
||||
# Error relocating /nix/store/...-ghc-8.10.2-binary/lib/ghc-8.10.5/bin/ghc: <20>: symbol not found
|
||||
# Error relocating /nix/store/...-ghc-8.10.2-binary/lib/ghc-8.10.5/bin/ghc: <20>?: symbol not found
|
||||
# Error relocating /nix/store/...-ghc-8.10.2-binary/lib/ghc-8.10.5/bin/ghc: 64-linux-ghc-8.10.5/libHSexceptions-0.10.4-ghc8.10.5.so: symbol not found
|
||||
# This is extremely bogus and should be investigated.
|
||||
dontStrip = if stdenv.hostPlatform.isMusl then true else false; # `if` for explicitness
|
||||
|
||||
# On Linux, use patchelf to modify the executables so that they can
|
||||
# find editline/gmp.
|
||||
postFixup = lib.optionalString (stdenv.isLinux && !(binDistUsed.isStatic or false))
|
||||
(if stdenv.hostPlatform.isAarch64 then
|
||||
# Keep rpath as small as possible on aarch64 for patchelf#244. All Elfs
|
||||
# are 2 directories deep from $out/lib, so pooling symlinks there makes
|
||||
# a short rpath.
|
||||
''
|
||||
(cd $out/lib; ln -s ${ncurses6.out}/lib/libtinfo.so.6)
|
||||
(cd $out/lib; ln -s ${lib.getLib gmpUsed}/lib/libgmp.so.10)
|
||||
(cd $out/lib; ln -s ${numactl.out}/lib/libnuma.so.1)
|
||||
for p in $(find "$out/lib" -type f -name "*\.so*"); do
|
||||
(cd $out/lib; ln -s $p)
|
||||
done
|
||||
|
||||
for p in $(find "$out/lib" -type f -executable); do
|
||||
if isELF "$p"; then
|
||||
echo "Patchelfing $p"
|
||||
patchelf --set-rpath "\$ORIGIN:\$ORIGIN/../.." $p
|
||||
fi
|
||||
done
|
||||
''
|
||||
else
|
||||
''
|
||||
for p in $(find "$out" -type f -executable); do
|
||||
if isELF "$p"; then
|
||||
echo "Patchelfing $p"
|
||||
patchelf --set-rpath "${libPath}:$(patchelf --print-rpath $p)" $p
|
||||
fi
|
||||
done
|
||||
'') + lib.optionalString stdenv.isDarwin ''
|
||||
# not enough room in the object files for the full path to libiconv :(
|
||||
for exe in $(find "$out" -type f -executable); do
|
||||
isScript $exe && continue
|
||||
ln -fs ${libiconv}/lib/libiconv.dylib $(dirname $exe)/libiconv.dylib
|
||||
install_name_tool -change /usr/lib/libiconv.2.dylib @executable_path/libiconv.dylib -change /usr/local/lib/gcc/6/libgcc_s.1.dylib ${gcc.cc.lib}/lib/libgcc_s.1.dylib $exe
|
||||
done
|
||||
|
||||
for file in $(find "$out" -name setup-config); do
|
||||
substituteInPlace $file --replace /usr/bin/ranlib "$(type -P ranlib)"
|
||||
done
|
||||
'' +
|
||||
lib.optionalString minimal ''
|
||||
# Remove profiling files
|
||||
find $out -type f -name '*.p_o' -delete
|
||||
find $out -type f -name '*.p_hi' -delete
|
||||
find $out -type f -name '*_p.a' -delete
|
||||
# `-f` because e.g. musl bindist does not have this file.
|
||||
rm -f $out/lib/ghc-*/bin/ghc-iserv-prof
|
||||
# Hydra will redistribute this derivation, so we have to keep the docs for
|
||||
# legal reasons (retaining the legal notices etc)
|
||||
# As a last resort we could unpack the docs separately and symlink them in.
|
||||
# They're in $out/share/{doc,man}.
|
||||
''
|
||||
# Recache package db which needs to happen for Hadrian bindists
|
||||
# where we modify the package db before installing
|
||||
+ ''
|
||||
"$out/bin/ghc-pkg" --package-db="$out/lib/"ghc-*/package.conf.d recache
|
||||
'';
|
||||
|
||||
# In nixpkgs, musl based builds currently enable `pie` hardening by default
|
||||
# (see `defaultHardeningFlags` in `make-derivation.nix`).
|
||||
# But GHC cannot currently produce outputs that are ready for `-pie` linking.
|
||||
# Thus, disable `pie` hardening, otherwise `recompile with -fPIE` errors appear.
|
||||
# See:
|
||||
# * https://github.com/NixOS/nixpkgs/issues/129247
|
||||
# * https://gitlab.haskell.org/ghc/ghc/-/issues/19580
|
||||
hardeningDisable = lib.optional stdenv.targetPlatform.isMusl "pie";
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
# Sanity check, can ghc create executables?
|
||||
cd $TMP
|
||||
mkdir test-ghc; cd test-ghc
|
||||
cat > main.hs << EOF
|
||||
{-# LANGUAGE TemplateHaskell #-}
|
||||
module Main where
|
||||
main = putStrLn \$([|"yes"|])
|
||||
EOF
|
||||
env -i $out/bin/ghc --make main.hs || exit 1
|
||||
echo compilation ok
|
||||
[ $(./main) == "yes" ]
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
targetPrefix = "";
|
||||
enableShared = true;
|
||||
|
||||
inherit llvmPackages;
|
||||
|
||||
# Our Cabal compiler name
|
||||
haskellCompilerName = "ghc-${version}";
|
||||
};
|
||||
|
||||
meta = rec {
|
||||
homepage = "http://haskell.org/ghc";
|
||||
description = "The Glasgow Haskell Compiler";
|
||||
license = lib.licenses.bsd3;
|
||||
# HACK: since we can't encode the libc / abi in platforms, we need
|
||||
# to make the platform list dependent on the evaluation platform
|
||||
# in order to avoid eval errors with musl which supports less
|
||||
# platforms than the default libcs (i. e. glibc / libSystem).
|
||||
# This is done for the benefit of Hydra, so `packagePlatforms`
|
||||
# won't return any platforms that would cause an evaluation
|
||||
# failure for `pkgsMusl.haskell.compiler.ghc922Binary`, as
|
||||
# long as the evaluator runs on a platform that supports
|
||||
# `pkgsMusl`.
|
||||
platforms = builtins.attrNames ghcBinDists.${distSetName};
|
||||
hydraPlatforms = builtins.filter (p: minimal || p != "aarch64-linux") platforms;
|
||||
maintainers = lib.teams.haskell.members;
|
||||
};
|
||||
}
|
@ -112,6 +112,7 @@ self: super: {
|
||||
hls-haddock-comments-plugin = dontCheck super.hls-haddock-comments-plugin;
|
||||
hls-rename-plugin = dontCheck super.hls-rename-plugin;
|
||||
hls-fourmolu-plugin = dontCheck super.hls-fourmolu-plugin;
|
||||
hls-floskell-plugin = dontCheck super.hls-floskell-plugin;
|
||||
} // lib.optionalAttrs pkgs.stdenv.hostPlatform.isAarch32 {
|
||||
# AARCH32-SPECIFIC OVERRIDES
|
||||
|
||||
|
@ -1662,11 +1662,7 @@ self: super: {
|
||||
# waiting for aeson bump
|
||||
servant-swagger-ui-core = doJailbreak super.servant-swagger-ui-core;
|
||||
|
||||
hercules-ci-agent =
|
||||
assert super.hercules-ci-agent.version == "0.9.5"; # >0.9.5: remove source override as sdist will be fixed
|
||||
overrideSrc
|
||||
{ src = pkgs.fetchFromGitHub { owner = "hercules-ci"; repo = "hercules-ci-agent"; rev = "hercules-ci-agent-0.9.5"; sha256 = "sha256-7d8lf4g8CWHTzIOmma8UKvFIi1Og6RqPH9Lt+6iA4pw="; } + "/hercules-ci-agent"; }
|
||||
(generateOptparseApplicativeCompletion "hercules-ci-agent" super.hercules-ci-agent);
|
||||
hercules-ci-agent = generateOptparseApplicativeCompletion "hercules-ci-agent" super.hercules-ci-agent;
|
||||
|
||||
# Test suite doesn't compile with aeson 2.0
|
||||
# https://github.com/hercules-ci/hercules-ci-agent/pull/387
|
||||
|
@ -358,6 +358,7 @@ broken-packages:
|
||||
- binary-derive
|
||||
- binary-ext
|
||||
- binary-indexed-tree
|
||||
- binary-io
|
||||
- binary-protocol
|
||||
- binary-tree
|
||||
- binary-typed
|
||||
@ -366,6 +367,7 @@ broken-packages:
|
||||
- bindings-apr
|
||||
- bindings-bfd
|
||||
- bindings-cctools
|
||||
- bindings-common
|
||||
- bindings-dc1394
|
||||
- bindings-eskit
|
||||
- bindings-EsounD
|
||||
@ -1777,6 +1779,7 @@ broken-packages:
|
||||
- goatee
|
||||
- gochan
|
||||
- godot-haskell
|
||||
- godot-megaparsec
|
||||
- gofer-prelude
|
||||
- gogol-core
|
||||
- gooey
|
||||
@ -2332,6 +2335,7 @@ broken-packages:
|
||||
- houseman
|
||||
- hp2any-core
|
||||
- hpack-convert
|
||||
- hpapi
|
||||
- hpasteit
|
||||
- HPath
|
||||
- hpc-coveralls
|
||||
@ -2705,6 +2709,7 @@ broken-packages:
|
||||
- IsNull
|
||||
- iso8601-duration
|
||||
- isobmff
|
||||
- isomorphism-class
|
||||
- isotope
|
||||
- itcli
|
||||
- itemfield
|
||||
@ -2868,6 +2873,7 @@ broken-packages:
|
||||
- lambdabot-utils
|
||||
- lambdabot-xmpp
|
||||
- lambda-bridge
|
||||
- lambda-calculator
|
||||
- lambda-canvas
|
||||
- lambdacms-core
|
||||
- lambda-cube
|
||||
@ -4155,6 +4161,7 @@ broken-packages:
|
||||
- quenya-verb
|
||||
- querystring-pickle
|
||||
- questioner
|
||||
- quibble-core
|
||||
- QuickAnnotate
|
||||
- quickcheck-arbitrary-template
|
||||
- quickcheck-property-comb
|
||||
@ -5831,7 +5838,9 @@ broken-packages:
|
||||
- zendesk-api
|
||||
- zeno
|
||||
- zeolite-lang
|
||||
- zeromq4-clone-pattern
|
||||
- zeromq4-conduit
|
||||
- zeromq4-patterns
|
||||
- zeromq-haskell
|
||||
- zettelkast
|
||||
- ZFS
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Stackage LTS 19.11
|
||||
# Stackage LTS 19.12
|
||||
# This file is auto-generated by
|
||||
# maintainers/scripts/haskell/update-stackage.sh
|
||||
default-package-overrides:
|
||||
@ -11,7 +11,7 @@ default-package-overrides:
|
||||
- acid-state ==0.16.1.1
|
||||
- action-permutations ==0.0.0.1
|
||||
- active ==0.2.0.15
|
||||
- ad ==4.5.1
|
||||
- ad ==4.5.2
|
||||
- ad-delcont ==0.3.0.0
|
||||
- adjunctions ==4.4.1
|
||||
- adler32 ==0.1.2.0
|
||||
@ -25,7 +25,7 @@ default-package-overrides:
|
||||
- aeson-commit ==1.4
|
||||
- aeson-compat ==0.3.10
|
||||
- aeson-diff ==1.1.0.13
|
||||
- aeson-extra ==0.5.1
|
||||
- aeson-extra ==0.5.1.1
|
||||
- aeson-generic-compat ==0.0.1.3
|
||||
- aeson-optics ==1.1.1
|
||||
- aeson-pretty ==0.8.9
|
||||
@ -42,7 +42,7 @@ default-package-overrides:
|
||||
- alex ==3.2.7.1
|
||||
- alex-meta ==0.3.0.13
|
||||
- algebra ==4.3.1
|
||||
- algebraic-graphs ==0.6
|
||||
- algebraic-graphs ==0.6.1
|
||||
- align-audio ==0.0
|
||||
- Allure ==0.11.0.0
|
||||
- almost-fix ==0.0.2
|
||||
@ -239,7 +239,7 @@ default-package-overrides:
|
||||
- buffer-builder ==0.2.4.8
|
||||
- buffer-pipe ==0.0
|
||||
- bugsnag-haskell ==0.0.4.4
|
||||
- bugsnag-hs ==0.2.0.8
|
||||
- bugsnag-hs ==0.2.0.9
|
||||
- bugzilla-redhat ==1.0.0
|
||||
- burrito ==2.0.1.1
|
||||
- butcher ==1.3.3.2
|
||||
@ -256,7 +256,7 @@ default-package-overrides:
|
||||
- bytestring-conversion ==0.3.2
|
||||
- bytestring-lexing ==0.5.0.8
|
||||
- bytestring-mmap ==0.2.2
|
||||
- bytestring-strict-builder ==0.4.5.5
|
||||
- bytestring-strict-builder ==0.4.5.6
|
||||
- bytestring-to-vector ==0.3.0.1
|
||||
- bytestring-tree-builder ==0.2.7.9
|
||||
- bytestring-trie ==0.2.7
|
||||
@ -813,7 +813,7 @@ default-package-overrides:
|
||||
- function-builder ==0.3.0.1
|
||||
- functor-classes-compat ==2.0.0.2
|
||||
- functor-combinators ==0.4.1.0
|
||||
- fused-effects ==1.1.1.2
|
||||
- fused-effects ==1.1.1.3
|
||||
- fusion-plugin ==0.2.4
|
||||
- fusion-plugin-types ==0.1.0
|
||||
- fuzzcheck ==0.1.1
|
||||
@ -825,7 +825,7 @@ default-package-overrides:
|
||||
- gd ==3000.7.3
|
||||
- gdp ==0.0.3.0
|
||||
- general-games ==1.1.1
|
||||
- generic-aeson ==0.2.0.13
|
||||
- generic-aeson ==0.2.0.14
|
||||
- generic-arbitrary ==0.2.2
|
||||
- generic-constraints ==1.1.1.1
|
||||
- generic-data ==0.9.2.1
|
||||
@ -915,7 +915,7 @@ default-package-overrides:
|
||||
- gi-pango ==1.0.25
|
||||
- githash ==0.1.6.2
|
||||
- github ==0.27
|
||||
- github-release ==2.0.0.0
|
||||
- github-release ==2.0.0.1
|
||||
- github-rest ==1.1.2
|
||||
- github-types ==0.2.1
|
||||
- github-webhooks ==0.15.0
|
||||
@ -1182,7 +1182,7 @@ default-package-overrides:
|
||||
- http-common ==0.8.3.4
|
||||
- http-conduit ==2.3.8
|
||||
- http-date ==0.0.11
|
||||
- http-directory ==0.1.9
|
||||
- http-directory ==0.1.10
|
||||
- http-download ==0.2.0.0
|
||||
- httpd-shed ==0.4.1.1
|
||||
- http-io-streams ==0.1.6.1
|
||||
@ -1197,7 +1197,7 @@ default-package-overrides:
|
||||
- HUnit-approx ==1.1.1.1
|
||||
- hunit-dejafu ==2.0.0.5
|
||||
- hvect ==0.4.0.1
|
||||
- hvega ==0.12.0.2
|
||||
- hvega ==0.12.0.3
|
||||
- hw-balancedparens ==0.4.1.2
|
||||
- hw-bits ==0.7.2.2
|
||||
- hw-conduit ==0.2.1.1
|
||||
@ -1248,7 +1248,7 @@ default-package-overrides:
|
||||
- if ==0.1.0.0
|
||||
- iff ==0.0.6
|
||||
- ihaskell ==0.10.2.2
|
||||
- ihaskell-hvega ==0.5.0.2
|
||||
- ihaskell-hvega ==0.5.0.3
|
||||
- ihs ==0.1.0.3
|
||||
- ilist ==0.4.0.1
|
||||
- imagesize-conduit ==1.1
|
||||
@ -1301,7 +1301,7 @@ default-package-overrides:
|
||||
- io-streams ==1.5.2.1
|
||||
- ip6addr ==1.0.3
|
||||
- iproute ==1.7.12
|
||||
- IPv6Addr ==2.0.4
|
||||
- IPv6Addr ==2.0.5
|
||||
- ipynb ==0.2
|
||||
- ipython-kernel ==0.10.2.2
|
||||
- irc ==0.6.1.0
|
||||
@ -1326,7 +1326,7 @@ default-package-overrides:
|
||||
- js-flot ==0.8.3
|
||||
- js-jquery ==3.3.1
|
||||
- json ==0.10
|
||||
- json-feed ==2.0.0.2
|
||||
- json-feed ==2.0.0.3
|
||||
- jsonifier ==0.2.1.1
|
||||
- jsonpath ==0.2.1.0
|
||||
- json-stream ==0.4.4.1
|
||||
@ -1343,7 +1343,7 @@ default-package-overrides:
|
||||
- katip-logstash ==0.1.0.2
|
||||
- katip-wai ==0.1.2.0
|
||||
- kazura-queue ==0.1.0.4
|
||||
- keep-alive ==0.2.0.0
|
||||
- keep-alive ==0.2.1.0
|
||||
- keycode ==0.2.2
|
||||
- keys ==3.12.3
|
||||
- ki ==0.2.0.1
|
||||
@ -1621,7 +1621,7 @@ default-package-overrides:
|
||||
- named ==0.3.0.1
|
||||
- names-th ==0.3.0.1
|
||||
- nano-erl ==0.1.0.1
|
||||
- NanoID ==3.2.0
|
||||
- NanoID ==3.2.1
|
||||
- nanospec ==0.2.2
|
||||
- nanovg ==0.8.0.0
|
||||
- nats ==1.1.2
|
||||
@ -1799,7 +1799,7 @@ default-package-overrides:
|
||||
- peano ==0.1.0.1
|
||||
- pem ==0.2.4
|
||||
- percent-format ==0.0.2
|
||||
- peregrin ==0.3.2
|
||||
- peregrin ==0.3.3
|
||||
- perf ==0.9.0
|
||||
- perfect-hash-generator ==0.2.0.6
|
||||
- persist ==0.1.1.5
|
||||
@ -1951,7 +1951,7 @@ default-package-overrides:
|
||||
- pulse-simple ==0.1.14
|
||||
- pureMD5 ==2.1.4
|
||||
- purescript-bridge ==0.14.0.0
|
||||
- pusher-http-haskell ==2.1.0.9
|
||||
- pusher-http-haskell ==2.1.0.10
|
||||
- pvar ==1.0.0.0
|
||||
- PyF ==0.10.2.0
|
||||
- qchas ==1.1.0.1
|
||||
@ -1998,7 +1998,7 @@ default-package-overrides:
|
||||
- rank2classes ==1.4.4
|
||||
- Rasterific ==0.7.5.4
|
||||
- rasterific-svg ==0.3.3.2
|
||||
- ratel ==2.0.0.2
|
||||
- ratel ==2.0.0.3
|
||||
- rate-limit ==1.4.2
|
||||
- ratel-wai ==2.0.0.0
|
||||
- rattle ==0.2
|
||||
@ -2091,7 +2091,7 @@ default-package-overrides:
|
||||
- rope-utf16-splay ==0.3.2.0
|
||||
- rosezipper ==0.2
|
||||
- rot13 ==0.2.0.1
|
||||
- rpmbuild-order ==0.4.7
|
||||
- rpmbuild-order ==0.4.8
|
||||
- rpm-nvr ==0.1.2
|
||||
- rp-tree ==0.7.1
|
||||
- RSA ==2.4.1
|
||||
@ -2216,7 +2216,7 @@ default-package-overrides:
|
||||
- ShellCheck ==0.8.0
|
||||
- shell-conduit ==5.0.0
|
||||
- shell-escape ==0.2.0
|
||||
- shellmet ==0.0.4.0
|
||||
- shellmet ==0.0.4.1
|
||||
- shelltestrunner ==1.9
|
||||
- shell-utility ==0.1
|
||||
- shelly ==1.10.0
|
||||
@ -2247,7 +2247,7 @@ default-package-overrides:
|
||||
- siphash ==1.0.3
|
||||
- Sit ==0.2022.3.18
|
||||
- sitemap-gen ==0.1.0.0
|
||||
- sized ==1.0.0.0
|
||||
- sized ==1.0.0.1
|
||||
- skein ==1.0.9.4
|
||||
- skews ==0.1.0.3
|
||||
- skip-var ==0.1.1.0
|
||||
@ -2370,7 +2370,7 @@ default-package-overrides:
|
||||
- stripe-scotty ==1.1.0.2
|
||||
- stripe-signature ==1.0.0.14
|
||||
- stripe-wreq ==1.0.1.14
|
||||
- strive ==6.0.0.2
|
||||
- strive ==6.0.0.3
|
||||
- strong-path ==1.1.4.0
|
||||
- structs ==0.1.6
|
||||
- structured ==0.1.1
|
||||
@ -2382,7 +2382,7 @@ default-package-overrides:
|
||||
- svg-builder ==0.1.1
|
||||
- SVGFonts ==1.8.0.1
|
||||
- svg-tree ==0.6.2.4
|
||||
- swagger2 ==2.8.2
|
||||
- swagger2 ==2.8.4
|
||||
- swish ==0.10.2.0
|
||||
- syb ==0.7.2.1
|
||||
- sydtest-discover ==0.0.0.1
|
||||
@ -2587,7 +2587,7 @@ default-package-overrides:
|
||||
- type-level-integers ==0.0.1
|
||||
- type-level-kv-list ==1.1.0
|
||||
- type-level-natural-number ==2.0
|
||||
- type-level-numbers ==0.1.1.1
|
||||
- type-level-numbers ==0.1.1.2
|
||||
- typelits-witnesses ==0.4.0.0
|
||||
- type-map ==0.1.7.0
|
||||
- type-natural ==1.1.0.1
|
||||
@ -2641,7 +2641,7 @@ default-package-overrides:
|
||||
- unliftio ==0.2.22.0
|
||||
- unliftio-core ==0.2.0.1
|
||||
- unliftio-path ==0.0.2.0
|
||||
- unliftio-pool ==0.2.1.1
|
||||
- unliftio-pool ==0.2.2.0
|
||||
- unliftio-streams ==0.1.1.1
|
||||
- unlit ==0.4.0.0
|
||||
- unordered-containers ==0.2.17.0
|
||||
@ -2718,7 +2718,7 @@ default-package-overrides:
|
||||
- wai-enforce-https ==1.0.0.0
|
||||
- wai-eventsource ==3.0.0
|
||||
- wai-extra ==3.1.12.1
|
||||
- wai-feature-flags ==0.1.0.3
|
||||
- wai-feature-flags ==0.1.0.4
|
||||
- wai-handler-launch ==3.0.3.1
|
||||
- wai-logger ==2.4.0
|
||||
- wai-middleware-caching ==0.1.0.2
|
||||
@ -2745,9 +2745,9 @@ default-package-overrides:
|
||||
- wcwidth ==0.0.2
|
||||
- webex-teams-api ==0.2.0.1
|
||||
- webex-teams-conduit ==0.2.0.1
|
||||
- webgear-core ==1.0.1
|
||||
- webgear-openapi ==1.0.1
|
||||
- webgear-server ==1.0.1
|
||||
- webgear-core ==1.0.2
|
||||
- webgear-openapi ==1.0.2
|
||||
- webgear-server ==1.0.2
|
||||
- webpage ==0.0.5.1
|
||||
- web-plugins ==0.4.1
|
||||
- web-routes ==0.27.14.4
|
||||
@ -2851,7 +2851,7 @@ with-compiler: ghc-9.0.2
|
||||
- yesod-markdown ==0.12.6.13
|
||||
- yesod-newsfeed ==1.7.0.0
|
||||
- yesod-page-cursor ==2.0.1.0
|
||||
- yesod-paginator ==1.1.2.1
|
||||
- yesod-paginator ==1.1.2.2
|
||||
- yesod-persistent ==1.6.0.8
|
||||
- yesod-recaptcha2 ==1.0.2
|
||||
- yesod-routes-flow ==3.0.0.2
|
||||
|
@ -3810,6 +3810,7 @@ dont-distribute-packages:
|
||||
- test-simple
|
||||
- testbench
|
||||
- text-all
|
||||
- text-builder-dev_0_3_3
|
||||
- text-generic-pretty
|
||||
- text-json-qq
|
||||
- text-locale-encoding
|
||||
|
1529
pkgs/development/haskell-modules/hackage-packages.nix
generated
1529
pkgs/development/haskell-modules/hackage-packages.nix
generated
File diff suppressed because it is too large
Load Diff
@ -8,6 +8,8 @@ let
|
||||
"ghc8102BinaryMinimal"
|
||||
"ghc8107Binary"
|
||||
"ghc8107BinaryMinimal"
|
||||
"ghc922Binary"
|
||||
"ghc922BinaryMinimal"
|
||||
"ghcjs"
|
||||
"ghcjs810"
|
||||
"integer-simple"
|
||||
@ -76,6 +78,14 @@ in {
|
||||
minimal = true;
|
||||
};
|
||||
|
||||
ghc922Binary = callPackage ../development/compilers/ghc/9.2.2-binary.nix {
|
||||
llvmPackages = pkgs.llvmPackages_12;
|
||||
};
|
||||
ghc922BinaryMinimal = callPackage ../development/compilers/ghc/9.2.2-binary.nix {
|
||||
llvmPackages = pkgs.llvmPackages_12;
|
||||
minimal = true;
|
||||
};
|
||||
|
||||
ghc884 = callPackage ../development/compilers/ghc/8.8.4.nix {
|
||||
bootPkgs =
|
||||
# aarch64 ghc865Binary gets SEGVs due to haskell#15449 or similar
|
||||
@ -212,6 +222,18 @@ in {
|
||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-8.10.x.nix { };
|
||||
packageSetConfig = bootstrapPackageSet;
|
||||
};
|
||||
ghc922Binary = callPackage ../development/haskell-modules {
|
||||
buildHaskellPackages = bh.packages.ghc922Binary;
|
||||
ghc = bh.compiler.ghc922Binary;
|
||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
|
||||
packageSetConfig = bootstrapPackageSet;
|
||||
};
|
||||
ghc922BinaryMinimal = callPackage ../development/haskell-modules {
|
||||
buildHaskellPackages = bh.packages.ghc922BinaryMinimal;
|
||||
ghc = bh.compiler.ghc922BinaryMinimal;
|
||||
compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.2.x.nix { };
|
||||
packageSetConfig = bootstrapPackageSet;
|
||||
};
|
||||
ghc884 = callPackage ../development/haskell-modules {
|
||||
buildHaskellPackages = bh.packages.ghc884;
|
||||
ghc = bh.compiler.ghc884;
|
||||
|
Loading…
Reference in New Issue
Block a user