File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1
1
This file contains a summary of changes to Haskell.nix and ` nix-tools `
2
2
that will impact users.
3
3
4
+ ## Jul 22, 2022
5
+ * Removed reliance on ` builtins.currentSystem ` . It was used it to provide
6
+ ` pkgs.evalPackages ` via an overlay that it used to run derivations
7
+ used in imports from derivation (IFDs).
8
+
9
+ These derivations are now run on ` buildPackages ` by default.
10
+
11
+ Passsing ` evalPackages ` to a project function will change where all the
12
+ derivations used in IFDs are run for that project (including shell tools):
13
+ evalPackages = import nixpkgs haskellNix.nixpkgsArgs;
14
+
15
+ Passing ` evalSystem ` instead will use create a suitable ` nixpkgs ` using ` pkgs.path `
16
+ and ` pkgs.overlay ` :
17
+ evalSystem = "x86_64-linux";
18
+ or
19
+ evalSystem = builtins.currentSystem;
20
+
21
+ The ` haskellLib.cleanGit ` function is also affected by this change. If you are cross
22
+ compiling and using ` cleanGit ` you should probably do something like:
23
+ pkgs = import nixpkgs haskellNix.nixpkgsArgs;
24
+ evalPackages = import nixpkgs (haskellNix.nixpkgsArgs // { system = evalSystem; });
25
+ p = pkgs.pkgsCross.mingwW64.haskell-nix.cabalProject {
26
+ inherit evalPackages;
27
+ src = evalPackages.haskell-nix.haskellLib.cleanGit { src = ./.; };
28
+ };
29
+
4
30
## Feb 16, 2022
5
31
* Removed lookupSha256 argument from project functions.
6
32
Pass a ` sha256map ` instead.
You can’t perform that action at this time.
0 commit comments