Skip to content

Commit 008e8cc

Browse files
Bump nixpkgs pins (#2354)
* Bump nixpkgs pins * Unpin nodejs * Fix wine * Fix wine * Update overlays/wine.nix Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * nix flake update iserv-proxy * Fix broken symlink issue * Bump head.hackage * Check with `nix-eval-jobs` instead of `hydra-eval-jobs` * Check with `nix-eval-jobs` instead of `hydra-eval-jobs` * Check with `nix-eval-jobs` instead of `hydra-eval-jobs` * Add materialized file * Update head.hackage * Fix hadrian eval time dependency on buildPackages.srcOnly * Update head.hackage --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e985453 commit 008e8cc

15 files changed

+8635
-64
lines changed

builder/ghc-for-component-wrapper.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ let
3737
${lndir}/bin/lndir -silent $unwrappedGhc $wrappedGhc
3838
rm -rf ${libDir}/*/
3939
''
40-
# ... but retain the lib/ghc/bin directory. This contains `unlit' and friends.
40+
# ... but retain the lib/ghc/bin directory. This may contain `unlit' and friends.
4141
+ ''
4242
if [ -d $unwrappedGhc/lib/${ghcCommand}-${ghc.version}/bin ]; then
4343
ln -s $unwrappedGhc/lib/${ghcCommand}-${ghc.version}/bin ${libDir}
44-
else
44+
elif [ -d $unwrappedGhc/lib/bin ]; then
4545
ln -s $unwrappedGhc/lib/bin ${libDir}
4646
fi
4747
''

compiler/ghc/default.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,18 @@ let
297297
subDir = "hadrian";
298298
includeSiblings = true;
299299
};
300+
# When building the plan we do not need a patched version
301+
# of the source and `buildPackages.srcOnly` requires introduces
302+
# a dependency on a build machine.
303+
evalSrc = haskell-nix.haskellLib.cleanSourceWith {
304+
src = {
305+
name = "hadrian";
306+
outPath = src;
307+
filterPath = { path, ... }: path;
308+
};
309+
subDir = "hadrian";
310+
includeSiblings = true;
311+
};
300312
};
301313

302314
hadrian = hadrianProject.hsPkgs.hadrian.components.exes.hadrian;

flake.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/call-cabal-project-to-nix.nix

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{ pkgs, cacert, index-state-hashes, haskellLib }:
22
{ name ? src.name or null # optional name for better error messages
33
, src
4+
, evalSrc ? src
45
, materialized-dir ? ../materialized
56
, compiler-nix-name # The name of the ghc compiler to use eg. "ghc884"
67
, index-state ? null # Hackage index-state, eg. "2019-10-10T00:00:00Z"
@@ -94,13 +95,13 @@ in let
9495
ghc = if ghc' ? latestVersion
9596
then __trace "WARNING: ${ghc'.version} is out of date, consider using upgrading to ${ghc'.latestVersion}." ghc'
9697
else ghc';
97-
subDir' = src.origSubDir or "";
98+
subDir' = evalSrc.origSubDir or "";
9899
subDir = pkgs.lib.strings.removePrefix "/" subDir';
99100

100101
cleanedSource = haskellLib.cleanSourceWith {
101102
name = if name != null then "${name}-root-cabal-files" else "source-root-cabal-files";
102-
src = src.origSrc or src;
103-
filter = path: type: (!(src ? filter) || src.filter path type) && (
103+
src = evalSrc.origSrc or evalSrc;
104+
filter = path: type: (!(evalSrc ? filter) || evalSrc.filter path type) && (
104105
type == "directory" ||
105106
pkgs.lib.any (i: (pkgs.lib.hasSuffix i path)) [ ".cabal" "package.yaml" ]); };
106107

lib/check.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ in stdenv.mkDerivation ((
3939

4040
nativeBuildInputs = drv.nativeBuildInputs
4141
++ [buildPackages.xorg.lndir]
42-
++ lib.optional (stdenv.hostPlatform.isGhcjs) buildPackages.nodejs-18_x;
42+
++ lib.optional (stdenv.hostPlatform.isGhcjs) buildPackages.nodejs;
4343

4444
inherit (component) doCheck doCrossCheck;
4545

lib/pkgconf-nixpkgs-map.nix

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,12 +2750,12 @@ pkgs:
27502750
"gaminggear-0" = [ "libgaminggear" ];
27512751
"libgbinder" = [ "libgbinder" ];
27522752
"libgcrypt" = [ "libgcrypt" ];
2753-
"libgda-5.0" = [ "libgda" ];
2754-
"libgda-report-5.0" = [ "libgda" ];
2755-
"libgda-sqlcipher-5.0" = [ "libgda" ];
2756-
"libgda-sqlite-5.0" = [ "libgda" ];
2757-
"libgda-ui-5.0" = [ "libgda" ];
2758-
"libgda-xslt-5.0" = [ "libgda" ];
2753+
"libgda-5.0" = [ "libgda5" ];
2754+
"libgda-report-5.0" = [ "libgda5" ];
2755+
"libgda-sqlcipher-5.0" = [ "libgda5" ];
2756+
"libgda-sqlite-5.0" = [ "libgda5" ];
2757+
"libgda-ui-5.0" = [ "libgda5" ];
2758+
"libgda-xslt-5.0" = [ "libgda5" ];
27592759
"libgda-6.0" = [ "libgda6" ];
27602760
"libgda-sqlite-6.0" = [ "libgda6" ];
27612761
"libgdamm-5.0" = [ "libgdamm" ];
@@ -5087,7 +5087,7 @@ pkgs:
50875087
"riscv-disasm" = [ "spike" ];
50885088
"riscv-fesvr" = [ "spike" ];
50895089
"SPIRV-Headers" = [ "spirv-headers" ];
5090-
"LLVMSPIRVLib" = [ "spirv-llvm-translator" ];
5090+
# "LLVMSPIRVLib" = [ "spirv-llvm-translator" ];
50915091
"SPIRV-Tools-shared" = [ "spirv-tools" ];
50925092
"SPIRV-Tools" = [ "spirv-tools" ];
50935093
"sqlcipher" = [ "sqlcipher" ];
@@ -5733,7 +5733,7 @@ pkgs:
57335733
then [ pkgs.gdk_pixbuf ]
57345734
else [];
57355735
# rocm-thunk was replaced by rocmPackages.rocm-thunk in 23.11
5736-
"libhsakmt" = [ pkgs.rocmPackages.rocm-thunk or pkgs.rocm-thunk ];
5736+
# "libhsakmt" = [ pkgs.rocmPackages.rocm-thunk or pkgs.rocm-thunk ];
57375737
} // lib.optionalAttrs (pkgs ? libsigcxx12) {
57385738
# libsigcxx12 was removed in 23.11
57395739
"sigc++-1.2" = [ "libsigcxx12" ];

lib/system-nixpkgs-map.nix

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,3 @@ in
147147
# -- mingw32
148148
// { mingwex = null;
149149
}
150-
# -- os x
151-
# NB: these map almost 1:1 to the framework names
152-
// darwin.apple_sdk.frameworks

0 commit comments

Comments
 (0)