Skip to content

Commit 848c79e

Browse files
committed
Add change log entry
1 parent 7ade088 commit 848c79e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

changelog.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
This file contains a summary of changes to Haskell.nix and `nix-tools`
22
that will impact users.
33

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+
430
## Feb 16, 2022
531
* Removed lookupSha256 argument from project functions.
632
Pass a `sha256map` instead.

0 commit comments

Comments
 (0)