|
8 | 8 |
|
9 | 9 | inputs = { |
10 | 10 | haskellNix.url = "github:input-output-hk/haskell.nix"; |
11 | | - nixpkgs-haskellNix.follows = "haskellNix/nixpkgs-unstable"; |
12 | | - nixpkgs-release.url = "github:NixOS/nixpkgs/release-24.05"; |
| 11 | + nixpkgs.follows = "haskellNix/nixpkgs-2405"; |
13 | 12 | flake-utils.url = "github:numtide/flake-utils"; |
14 | 13 | }; |
15 | 14 |
|
16 | 15 | outputs = { |
17 | 16 | self, |
18 | 17 | haskellNix, |
19 | | - nixpkgs-haskellNix, |
20 | | - nixpkgs-release, |
| 18 | + nixpkgs, |
21 | 19 | flake-utils, |
22 | 20 | }: |
23 | | - flake-utils.lib.eachSystem [ |
| 21 | + { |
| 22 | + overlays.dependencies = import ./nix/dependencies.nix; |
| 23 | + } |
| 24 | + // flake-utils.lib.eachSystem [ |
24 | 25 | "x86_64-linux" |
25 | 26 | "x86_64-darwin" |
26 | 27 | "aarch64-darwin" |
27 | 28 | ] |
28 | 29 | (system: let |
29 | 30 | ## It’s much easier to read from a JSON file than to have JSON import from some other file, so we extract some |
30 | 31 | ## configuration from the VS Code settings to avoid duplication. |
31 | | - vscodeSettings = nixpkgs-release.lib.importJSON ./.vscode/settings.json; |
| 32 | + vscodeSettings = nixpkgs.lib.importJSON ./.vscode/settings.json; |
32 | 33 | versions = |
33 | 34 | vscodeSettings."haskell.toolchain" |
34 | 35 | ## There are some things we want to pin that the VS Code Haskell extension doesn’t let us control. |
35 | 36 | // { |
36 | | - hpack = "0.35.2"; |
37 | | - ormolu = "0.7.2.0"; |
38 | | - }; |
39 | | - pkgs = import nixpkgs-haskellNix { |
| 37 | + hpack = "0.36.0"; |
| 38 | + ormolu = "0.7.2.0"; |
| 39 | + }; |
| 40 | + pkgs = import nixpkgs { |
40 | 41 | inherit system; |
41 | 42 | inherit (haskellNix) config; |
42 | 43 | overlays = [ |
43 | 44 | haskellNix.overlay |
44 | | - (import ./nix/dependencies.nix {inherit nixpkgs-release;}) |
| 45 | + self.overlays.dependencies |
45 | 46 | ]; |
46 | 47 | }; |
47 | 48 | unison-project = import ./nix/unison-project.nix { |
48 | | - inherit (nixpkgs-haskellNix) lib; |
| 49 | + inherit (nixpkgs) lib; |
49 | 50 | inherit (pkgs) haskell-nix; |
50 | 51 | }; |
51 | 52 | haskell-nix-flake = import ./nix/haskell-nix-flake.nix { |
52 | 53 | inherit pkgs unison-project versions; |
53 | | - inherit (nixpkgs-haskellNix) lib; |
| 54 | + inherit (nixpkgs) lib; |
54 | 55 | }; |
55 | 56 | renameAttrs = fn: |
56 | | - nixpkgs-haskellNix.lib.mapAttrs' (name: value: { |
| 57 | + nixpkgs.lib.mapAttrs' (name: value: { |
57 | 58 | inherit value; |
58 | 59 | name = fn name; |
59 | 60 | }); |
|
0 commit comments