Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: caef648994cf
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7adb91df59d6
Choose a head ref

Commits on Jul 23, 2020

  1. Copy the full SHA
    2aa3929 View commit details
  2. Copy the full SHA
    0aadd40 View commit details

Commits on Jul 24, 2020

  1. doctl: 1.45.1 -> 1.46.0

    r-ryantm committed Jul 24, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b0350bc View commit details
  2. luigi: 3.0.0 -> 3.0.1

    r-ryantm committed Jul 24, 2020
    Copy the full SHA
    3b0da63 View commit details
  3. LTS Haskell 16.6

    peti committed Jul 24, 2020
    Copy the full SHA
    303690c View commit details
  4. hackage-packages.nix: automatic Haskell package set update

    This update was generated by hackage2nix v2.15.5-10-gf433b07 from Hackage revision
    commercialhaskell/all-cabal-hashes@cae4f64.
    peti committed Jul 24, 2020
    Copy the full SHA
    e5dae61 View commit details
  5. Copy the full SHA
    c6ff9d9 View commit details
  6. Copy the full SHA
    ff26351 View commit details
  7. Copy the full SHA
    f19f7e7 View commit details
  8. haskellPackages.hnix: Fix build

    Add override as explained in the comment
    maralorn authored and peti committed Jul 24, 2020
    Copy the full SHA
    18121c6 View commit details
  9. haskellPackages.haskell-language-server: 0.1.0.0 -> 0.2.0.0

    generated by
    pkgs/development/tools/haskell/haskell-language-server/update.sh
    
    with some manual tweaks
    maralorn authored and peti committed Jul 24, 2020
    Copy the full SHA
    5e756f5 View commit details
  10. Copy the full SHA
    ac8c823 View commit details
  11. Copy the full SHA
    91d5290 View commit details
  12. Copy the full SHA
    5dfff45 View commit details
  13. haskellPackages.Color: unmark broken

    twhitehead authored and peti committed Jul 24, 2020
    Copy the full SHA
    5217492 View commit details
  14. ghc: add new version 8.8.4

    ggreif authored and peti committed Jul 24, 2020
    Copy the full SHA
    dd6ce8c View commit details
  15. Copy the full SHA
    8ffedd8 View commit details
  16. ghc: drop obsolete 8.4.x version

    We generally keep only the last 3 major releases of GHC.
    peti committed Jul 24, 2020
    Copy the full SHA
    f1182ec View commit details
  17. Copy the full SHA
    30464da View commit details
  18. Copy the full SHA
    b4dd96b View commit details
  19. hackage2nix.yaml: update list of broken builds to avoid evaluation er…

    …rors
    
    Ping @maralorn, because neuron appears to be broken.
    peti committed Jul 24, 2020
    Copy the full SHA
    229a832 View commit details
  20. hackage-packages.nix: automatic Haskell package set update

    This update was generated by hackage2nix v2.15.5-10-gf433b07 from Hackage revision
    commercialhaskell/all-cabal-hashes@dce5288.
    peti committed Jul 24, 2020
    Copy the full SHA
    5d021fe View commit details
  21. haskellPackages.splot: fix build

    Also introduce the top-level `splot` package which only provides the
    statically linked `splot` binary.
    basvandijk authored and peti committed Jul 24, 2020
    Copy the full SHA
    9d17ec4 View commit details
  22. Copy the full SHA
    6d54b2f View commit details
  23. Copy the full SHA
    5e28902 View commit details
  24. haskellPackages.jsaddle-warp: Fix build

    Disables a patch that is applied on upstream because of new version.
    maralorn authored and peti committed Jul 24, 2020
    Copy the full SHA
    692715d View commit details
  25. Copy the full SHA
    6acca64 View commit details
  26. Copy the full SHA
    0351afd View commit details
  27. Copy the full SHA
    698a614 View commit details
  28. Copy the full SHA
    8b95d6d View commit details
  29. Copy the full SHA
    ccb418a View commit details
  30. Merge pull request #93762 from maralorn/fix-neuron

    [haskell-updates] haskellPackages.neuron: Fix deps and build
    maralorn authored Jul 24, 2020
    Copy the full SHA
    7841ad9 View commit details
  31. Merge pull request #93768 from maralorn/hls

    [haskell-updates] haskellPackages.haskell-language-server: 0.2.0.0 -> 0.2.2.0
    maralorn authored Jul 24, 2020
    Copy the full SHA
    359d2e6 View commit details
  32. bluespec: Fix build without ghc 844

    ghc 8.4.4 was only required before the merge of
    
    B-Lang-org/bsc#42
    
    which actually is already contained in the commit we are using.
    maralorn committed Jul 24, 2020
    Copy the full SHA
    8605e1c View commit details
  33. mongodb: 4.0.12 -> 4.2.8

    Not strictly an upgrade, but adds a new mongodb-4_2 target with the
    current mongodb from that branch.
    
    Use matching client and server versions in mongodb tests- tests were
    using the mongo 3.4 client to connect, and this finally doesn't work
    with server 4.2.
    
    Per reviewer suggestion, adding myself as cheetah3 maintainer.
    
    Additionally, reestore comments describing the purpose of the
    build-dependencies patch
    pjjw committed Jul 24, 2020
    Copy the full SHA
    dbd0f3e View commit details
  34. codeql: 2.2.3 -> 2.2.4

    Signed-off-by: Pamplemousse <xav.maso@gmail.com>
    Pamplemousse committed Jul 24, 2020
    Copy the full SHA
    d14d094 View commit details
  35. deno: 1.2.0 -> 1.2.1

    06kellyjac committed Jul 24, 2020
    Copy the full SHA
    3c45c69 View commit details
  36. Merge pull request #93730 from r-ryantm/auto-update/doctl

    doctl: 1.45.1 -> 1.46.0
    ryantm authored Jul 24, 2020
    Copy the full SHA
    1857422 View commit details
  37. Merge pull request #93715 from lovesegfault/roon-server-revamp

    roon-server: revamp
    Ekleog authored Jul 24, 2020
    Copy the full SHA
    0c075ce View commit details
  38. Merge pull request #92719 from pjjw/update/mongodb-42

    mongodb: 4.0.12 -> 4.2.8
    offlinehacker authored Jul 24, 2020
    Copy the full SHA
    fea9351 View commit details
  39. Merge pull request #93772 from maralorn/fix-bluespec

    [haskell-updates] bluespec: Fix build without ghc 844
    peti authored Jul 24, 2020
    Copy the full SHA
    5f8e67b View commit details
  40. hackage2nix: update list of broken builds

    Ping @cdepillabout because of termonad.
    peti committed Jul 24, 2020
    Copy the full SHA
    4c8da32 View commit details
  41. hackage-packages.nix: automatic Haskell package set update

    This update was generated by hackage2nix v2.15.5-11-g7fa9100 from Hackage revision
    commercialhaskell/all-cabal-hashes@8af27e7.
    peti committed Jul 24, 2020
    Copy the full SHA
    dd74d6b View commit details
  42. Copy the full SHA
    1d96606 View commit details
  43. hackage-packages.nix: automatic Haskell package set update

    This update was generated by hackage2nix v2.15.5-11-g7fa9100-dirty from Hackage revision
    commercialhaskell/all-cabal-hashes@8af27e7.
    peti committed Jul 24, 2020
    Copy the full SHA
    b5613e7 View commit details
  44. Merge pull request #93776 from Pamplemousse/codeql

    codeql: 2.2.3 -> 2.2.4
    danieldk authored Jul 24, 2020
    Copy the full SHA
    deeb49e View commit details
  45. Merge pull request #93780 from 06kellyjac/deno_1.2.1

    deno: 1.2.0 -> 1.2.1
    danieldk authored Jul 24, 2020
    Copy the full SHA
    3b772b6 View commit details
  46. haskell-dhall: use latest version for ghc-8.10.x so that we can build…

    … with the latest repline library
    peti committed Jul 24, 2020
    Copy the full SHA
    f4d4fdc View commit details
  47. diffoscope: 152 -> 153

    Ma27 committed Jul 24, 2020
    Copy the full SHA
    5345c19 View commit details
  48. Merge pull request #93741 from r-ryantm/auto-update/luigi

    luigi: 3.0.0 -> 3.0.1
    bhipple authored Jul 24, 2020
    Copy the full SHA
    fd0febf View commit details
Showing with 3,461 additions and 1,794 deletions.
  1. +6 −0 maintainers/maintainer-list.nix
  2. +3 −3 nixos/modules/services/audio/roon-server.nix
  3. +3 −1 nixos/tests/mongodb.nix
  4. +2 −2 pkgs/applications/networking/cluster/luigi/default.nix
  5. +1 −0 pkgs/applications/science/logic/sad/default.nix
  6. +2 −2 pkgs/data/misc/hackage/default.nix
  7. +2 −5 pkgs/development/compilers/bluespec/default.nix
  8. +5 −0 pkgs/development/compilers/ghc/8.10.1.nix
  9. +31 −40 pkgs/development/compilers/ghc/{8.4.4.nix → 8.8.4.nix}
  10. +99 −39 pkgs/development/haskell-modules/configuration-common.nix
  11. +2 −0 pkgs/development/haskell-modules/configuration-ghc-8.10.x.nix
  12. +1 −0 pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix
  13. +137 −64 pkgs/development/haskell-modules/configuration-hackage2nix.yaml
  14. +0 −5 pkgs/development/haskell-modules/configuration-nix.nix
  15. +2,902 −1,498 pkgs/development/haskell-modules/hackage-packages.nix
  16. +6 −4 pkgs/development/haskell-modules/with-packages-wrapper.nix
  17. +20 −0 pkgs/development/python-modules/cheetah3/default.nix
  18. +2 −2 pkgs/development/tools/analysis/codeql/default.nix
  19. +2 −2 pkgs/development/tools/doctl/default.nix
  20. +24 −26 pkgs/development/tools/haskell/haskell-language-server/default.nix
  21. +23 −23 pkgs/development/tools/haskell/haskell-language-server/hls-ghcide.nix
  22. +1 −1 pkgs/development/tools/haskell/haskell-language-server/update.sh
  23. +3 −3 pkgs/development/web/deno/default.nix
  24. +4 −4 pkgs/development/web/deno/deps.nix
  25. +22 −0 pkgs/servers/nosql/mongodb/asio-no-experimental-string-view-4-2.patch
  26. +36 −0 pkgs/servers/nosql/mongodb/forget-build-dependencies-4-2.patch
  27. +3 −0 pkgs/servers/nosql/mongodb/forget-build-dependencies.patch
  28. +15 −4 pkgs/servers/nosql/mongodb/mongodb.nix
  29. +17 −0 pkgs/servers/nosql/mongodb/v4_2.nix
  30. +52 −49 pkgs/servers/roon-server/default.nix
  31. +2 −2 pkgs/tools/misc/diffoscope/default.nix
  32. +2 −2 pkgs/tools/system/fio/default.nix
  33. +18 −1 pkgs/top-level/all-packages.nix
  34. +11 −12 pkgs/top-level/haskell-packages.nix
  35. +2 −0 pkgs/top-level/python-packages.nix
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -6334,6 +6334,12 @@
githubId = 119460;
name = "Perry Barnoy";
};
pjjw = {
email = "peter@shortbus.org";
github = "pjjw";
githubId = 638;
name = "Peter Woodman";
};
pjones = {
email = "pjones@devalot.com";
github = "pjones";
6 changes: 3 additions & 3 deletions nixos/modules/services/audio/roon-server.nix
Original file line number Diff line number Diff line change
@@ -45,22 +45,22 @@ in {
environment.ROON_DATAROOT = "/var/lib/${name}";

serviceConfig = {
ExecStart = "${pkgs.roon-server}/opt/start.sh";
ExecStart = "${pkgs.roon-server}/start.sh";
LimitNOFILE = 8192;
User = cfg.user;
Group = cfg.group;
StateDirectory = name;
};
};

networking.firewall = mkIf cfg.openFirewall {
allowedTCPPortRanges = [
{ from = 9100; to = 9200; }
];
allowedUDPPorts = [ 9003 ];
};


users.groups.${cfg.group} = {};
users.users.${cfg.user} =
if cfg.user == "roon-server" then {
4 changes: 3 additions & 1 deletion nixos/tests/mongodb.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
node.wait_for_open_port(27017)
assert "hello" in node.succeed(
"mongo ${testQuery}"
"${pkg}/bin/mongo ${testQuery}"
)
node.execute(
@@ -36,6 +36,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
mongodb-3_4
mongodb-3_6
mongodb-4_0
mongodb-4_2
];
};
};
@@ -46,6 +47,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
+ runMongoDBTest pkgs.mongodb-3_4
+ runMongoDBTest pkgs.mongodb-3_6
+ runMongoDBTest pkgs.mongodb-4_0
+ runMongoDBTest pkgs.mongodb-4_2
+ ''
node.shutdown()
'';
4 changes: 2 additions & 2 deletions pkgs/applications/networking/cluster/luigi/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@

python3Packages.buildPythonApplication rec {
pname = "luigi";
version = "3.0.0";
version = "3.0.1";

src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "1km9fnq4pf0iqqcmz94idm0zb3l92zinz0bn6ip86xqhchafd4vf";
sha256 = "02c480f5pjgqsvqnkaw7f6n4nhdspmhq5w7lw8sgg2v3jghg8n7i";
};

propagatedBuildInputs = with python3Packages; [ dateutil tornado_4 python-daemon boto3 ];
1 change: 1 addition & 0 deletions pkgs/applications/science/logic/sad/default.nix
Original file line number Diff line number Diff line change
@@ -35,5 +35,6 @@ stdenv.mkDerivation {
maintainers = [ stdenv.lib.maintainers.schmitthenner ];
homepage = "http://nevidal.org/sad.en.html";
platforms = stdenv.lib.platforms.linux;
broken = true; # ghc-8.4.4 is gone from Nixpkgs
};
}
4 changes: 2 additions & 2 deletions pkgs/data/misc/hackage/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ fetchurl }:

fetchurl {
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/ccbc2765586cc6f71894919f1f096714ca6ae453.tar.gz";
sha256 = "001crq0myhn0bvyrbl10i8hski6z2a0hg9ij4plbjgvl5cldkzji";
url = "https://github.com/commercialhaskell/all-cabal-hashes/archive/8af27e77a015d06c7a8fe49a430fd5334a93ebf7.tar.gz";
sha256 = "1w5cfcvliy1ly8iq42l76ai5wgfnrwxf6hw5kq6p913qhhrcn5wr";
}
7 changes: 2 additions & 5 deletions pkgs/development/compilers/bluespec/default.nix
Original file line number Diff line number Diff line change
@@ -6,24 +6,21 @@
, fontconfig
, gmp
, gperf
, haskell
, libX11
, libpoly
, perl
, pkgconfig
, verilog
, xorg
, zlib
, ghc
}:

let
# yices wants a libgmp.a and fails otherwise
gmpStatic = gmp.override { withStatic = true; };

# Compiling PreludeBSV fails with more recent GHC versions
# > imperative statement (not BVI context)
# https://github.com/B-Lang-org/bsc/issues/20#issuecomment-583724030
ghcWithPackages = haskell.packages.ghc844.ghc.withPackages (g: (with g; [old-time regex-compat syb]));
ghcWithPackages = ghc.withPackages (g: (with g; [old-time regex-compat syb]));
in stdenv.mkDerivation rec {
pname = "bluespec";
version = "unstable-2020.02.09";
5 changes: 5 additions & 0 deletions pkgs/development/compilers/ghc/8.10.1.nix
Original file line number Diff line number Diff line change
@@ -23,6 +23,9 @@
, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform

# aarch64 outputs otherwise exceed 2GB limit
, enableProfiliedLibs ? !stdenv.targetPlatform.isAarch64

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
enableShared ? !stdenv.targetPlatform.isWindows && !stdenv.targetPlatform.useiOSPrebuilt
@@ -128,6 +131,8 @@ stdenv.mkDerivation (rec {
export NIX_LDFLAGS+=" -rpath $out/lib/ghc-${version}"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
export NIX_LDFLAGS+=" -no_dtrace_dof"
'' + stdenv.lib.optionalString (!enableProfiliedLibs) ''
GhcLibWays = "v dyn"
'' + stdenv.lib.optionalString targetPlatform.useAndroidPrebuilt ''
sed -i -e '5i ,("armv7a-unknown-linux-androideabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "cortex-a8", ""))' llvm-targets
'' + stdenv.lib.optionalString targetPlatform.isMusl ''
Original file line number Diff line number Diff line change
@@ -2,12 +2,15 @@

# build-tools
, bootPkgs
, autoconf, automake, coreutils, fetchurl, fetchpatch, perl, python3, m4, sphinx
, autoconf, automake, coreutils, fetchurl, perl, python3, m4, sphinx
, bash

, libiconv ? null, ncurses

, useLLVM ? !stdenv.targetPlatform.isx86 || (stdenv.targetPlatform.isMusl && stdenv.hostPlatform != stdenv.targetPlatform) || stdenv.targetPlatform.isiOS
, # GHC can be built with system libffi or a bundled one.
libffi ? null

, useLLVM ? !stdenv.targetPlatform.isx86
, # LLVM is conceptually a run-time-only depedendency, but for
# non-x86, we need LLVM to bootstrap later stages, so it becomes a
# build-time dependency too.
@@ -20,6 +23,9 @@
, # If enabled, use -fPIC when compiling static libs.
enableRelocatedStaticLibs ? stdenv.targetPlatform != stdenv.hostPlatform

# aarch64 outputs otherwise exceed 2GB limit
, enableProfiliedLibs ? !stdenv.targetPlatform.isAarch64

, # Whether to build dynamic libs for the standard library (on the target
# platform). Static libs are always built.
enableShared ? !stdenv.targetPlatform.isWindows && !stdenv.targetPlatform.useiOSPrebuilt
@@ -29,11 +35,12 @@

, # What flavour to build. An empty string indicates no
# specific flavour and falls back to ghc default values.
ghcFlavour ? stdenv.lib.optionalString (stdenv.targetPlatform != stdenv.hostPlatform) "perf-cross"
, # Whether to backport https://phabricator.haskell.org/D4388 for
# deterministic profiling symbol names, at the cost of a slightly
# non-standard GHC API
deterministicProfiling ? false
ghcFlavour ? stdenv.lib.optionalString (stdenv.targetPlatform != stdenv.hostPlatform)
(if useLLVM then "perf-cross" else "perf-cross-ncg")

, # Whether to disable the large address space allocator
# necessary fix for iOS: https://www.reddit.com/r/haskell/comments/4ttdz1/building_an_osxi386_to_iosarm64_cross_compiler/d5qvd67/
disableLargeAddressSpace ? stdenv.targetPlatform.isDarwin && stdenv.targetPlatform.isAarch64
}:

assert !enableIntegerSimple -> gmp != null;
@@ -70,6 +77,7 @@ let

# Splicer will pull out correct variations
libDeps = platform: stdenv.lib.optional enableTerminfo ncurses
++ [libffi]
++ stdenv.lib.optional (!enableIntegerSimple) gmp
++ stdenv.lib.optional (platform.libc != "glibc" && !targetPlatform.isWindows) libiconv;

@@ -85,39 +93,18 @@ let

in
stdenv.mkDerivation (rec {
version = "8.4.4";
version = "8.8.4";
name = "${targetPrefix}ghc-${version}";

src = fetchurl {
url = "https://downloads.haskell.org/ghc/${version}/ghc-${version}-src.tar.xz";
sha256 = "1ch4j2asg7pr52ai1hwzykxyj553wndg7wq93i47ql4fllspf48i";
sha256 = "0bgwbxxvdn56l91bp9p5d083gzcfdi6z8l8b17qzjpr3n8w5wl7h";
};

enableParallelBuilding = true;

outputs = [ "out" "doc" ];

patches = [(fetchpatch {
url = "https://github.com/haskell/hsc2hs/commit/738f3666c878ee9e79c3d5e819ef8b3460288edf.diff";
sha256 = "0plzsbfaq6vb1023lsarrjglwgr9chld4q3m99rcfzx0yx5mibp3";
extraPrefix = "utils/hsc2hs/";
stripLen = 1;
}) (fetchpatch rec { # https://phabricator.haskell.org/D5123
url = "http://tarballs.nixos.org/sha256/${sha256}";
name = "D5123.diff";
sha256 = "0nhqwdamf2y4gbwqxcgjxs0kqx23w9gv5kj0zv6450dq19rji82n";
})] ++ stdenv.lib.optional deterministicProfiling
(fetchpatch rec {
url = "http://tarballs.nixos.org/sha256/${sha256}";
name = "D4388.diff";
sha256 = "0w6sdcvnqjlnlzpvnzw20b80v150ijjyjvs9548ildc1928j0w7s";
})
++ stdenv.lib.optional stdenv.isDarwin ./backport-dylib-command-size-limit.patch
++ stdenv.lib.optional (targetPlatform.isAarch32 || targetPlatform.isAarch64) (fetchpatch {
url = "https://github.com/ghc/ghc/commit/d8495549ba9d194815c2d0eaee6797fc7c00756a.diff";
sha256 = "1yjcma507c609bcim4rnxq0gaj2dg4d001jklmbpbqpzqzxkn5sz";
});

postPatch = "patchShebangs .";

# GHC is a bit confused on its cross terminology.
@@ -144,6 +131,8 @@ stdenv.mkDerivation (rec {
export NIX_LDFLAGS+=" -rpath $out/lib/ghc-${version}"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
export NIX_LDFLAGS+=" -no_dtrace_dof"
'' + stdenv.lib.optionalString (!enableProfiliedLibs) ''
GhcLibWays = "v dyn"
'' + stdenv.lib.optionalString targetPlatform.useAndroidPrebuilt ''
sed -i -e '5i ,("armv7a-unknown-linux-androideabi", ("e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64", "cortex-a8", ""))' llvm-targets
'' + stdenv.lib.optionalString targetPlatform.isMusl ''
@@ -167,30 +156,36 @@ stdenv.mkDerivation (rec {
# TODO(@Ericson2314): Always pass "--target" and always prefix.
configurePlatforms = [ "build" "host" ]
++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";

# `--with` flags for libraries needed for RTS linker
configureFlags = [
"--datadir=$doc/share/doc/ghc"
"--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
] ++ stdenv.lib.optionals (libffi != null) [
"--with-system-libffi"
"--with-ffi-includes=${targetPackages.libffi.dev}/include"
"--with-ffi-libraries=${targetPackages.libffi.out}/lib"
] ++ stdenv.lib.optionals (targetPlatform == hostPlatform && !enableIntegerSimple) [
"--with-gmp-includes=${targetPackages.gmp.dev}/include" "--with-gmp-libraries=${targetPackages.gmp.out}/lib"
"--with-gmp-includes=${targetPackages.gmp.dev}/include"
"--with-gmp-libraries=${targetPackages.gmp.out}/lib"
] ++ stdenv.lib.optionals (targetPlatform == hostPlatform && hostPlatform.libc != "glibc" && !targetPlatform.isWindows) [
"--with-iconv-includes=${libiconv}/include" "--with-iconv-libraries=${libiconv}/lib"
"--with-iconv-includes=${libiconv}/include"
"--with-iconv-libraries=${libiconv}/lib"
] ++ stdenv.lib.optionals (targetPlatform != hostPlatform) [
"--enable-bootstrap-with-devel-snapshot"
] ++ stdenv.lib.optionals useLdGold [
"CFLAGS=-fuse-ld=gold"
"CONF_GCC_LINKER_OPTS_STAGE1=-fuse-ld=gold"
"CONF_GCC_LINKER_OPTS_STAGE2=-fuse-ld=gold"
] ++ stdenv.lib.optionals (targetPlatform.isDarwin && targetPlatform.isAarch64) [
# fix for iOS: https://www.reddit.com/r/haskell/comments/4ttdz1/building_an_osxi386_to_iosarm64_cross_compiler/d5qvd67/
] ++ stdenv.lib.optionals (disableLargeAddressSpace) [
"--disable-large-address-space"
];

# Make sure we never relax`$PATH` and hooks support for compatibility.
strictDeps = true;

# Don’t add -liconv to LDFLAGS automatically so that GHC will add it itself.
dontAddExtraLibs = true;
dontAddExtraLibs = true;

nativeBuildInputs = [
perl autoconf automake m4 python3 sphinx
@@ -212,10 +207,6 @@ stdenv.mkDerivation (rec {
# that in turn causes GHCi to abort
stripDebugFlags = [ "-S" ] ++ stdenv.lib.optional (!targetPlatform.isDarwin) "--keep-file-symbols";

# See #63511 - the only unstripped file is the debug rts which isn't meant to
# be stripped.
dontStrip = true;

checkTarget = "test";

hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";
@@ -239,7 +230,7 @@ stdenv.mkDerivation (rec {
inherit enableShared;

# Our Cabal compiler name
haskellCompilerName = "ghc-8.4.4";
haskellCompilerName = "ghc-${version}";
};

meta = {
Loading