Skip to content

Commit

Permalink
Update nixpkgs and ghc pins (input-output-hk#2067)
Browse files Browse the repository at this point in the history
* Update nixpkgs and ghc pins

* Update nixpkgs and ghc pins

* ifdLevel 1

* Fixes for new nixpkgs and ghc

* ifdLevel 2

* ifdLevel 3

* Include parsec from ghc 9.8 source

* Disable fortify for musl build of text package

* Wind back ghc 9.8 git commit for now

* ifdLevel 1

* ifdLevel 2

* ifdLevel 3
  • Loading branch information
hamishmack authored Sep 26, 2023
1 parent 8e42ccd commit 79d96fc
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 15 deletions.
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ghcjs-project.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ let
makeWrapper
xorg.lndir
gmp
pkgconfig
(pkgs.buildPackages.pkg-config or pkgconfig)
]
++ [ ghc cabal-install emsdk ];
# Configured the GHCJS source
Expand Down
6 changes: 6 additions & 0 deletions modules/configuration-nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,10 @@ in {
# Using -j1 works around the issue.
packages.gi-gtk.components.library.ghcOptions =
pkgs.lib.optional (__elem config.compiler.nix-name ["ghc961" "ghc962"]) "-j1";

# With recent versions of nixpkgs fortify causes musl version of the
# text package to fail with:
# error: inlining failed in call to ‘always_inline’ ‘void* memcpy(void*, const void*, size_t)’: target specific option mismatch
packages.text.components.library.hardeningDisable =
pkgs.lib.optionals pkgs.stdenv.hostPlatform.isMusl ["fortify"];
}
2 changes: 1 addition & 1 deletion overlays/fetch-source.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ in {
inherit name;
value = final.fetchFromGitLab {
domain = "gitlab.haskell.org";
owner = "hamishmack";
owner = "ghc";
repo = "ghc";
fetchSubmodules = true;
inherit (lockFile.nodes.${name}.locked) rev;
Expand Down
2 changes: 2 additions & 0 deletions overlays/ghc-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ let
} // final.lib.optionalAttrs (builtins.compareVersions ghcVersion "9.2.1" >= 0) {
deepseq = "libraries/deepseq";
pretty = "libraries/pretty";
} // final.lib.optionalAttrs (builtins.compareVersions ghcVersion "9.8" >= 0) {
parsec = "libraries/parsec";
} // final.lib.optionalAttrs (builtins.compareVersions ghcVersion "9.9" >= 0) {
ghc-platform = "libraries/ghc-platform";
ghc-internal = "libraries/ghc-internal";
Expand Down
2 changes: 1 addition & 1 deletion overlays/haskell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ final: prev: {
}
else {
cabalProjectLocal = ''
allow-newer: *:base
allow-newer: *:base, *:bytestring
'';
}))).hsPkgs.iserv-proxy.components.exes;
in {
Expand Down

0 comments on commit 79d96fc

Please sign in to comment.