|
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 | 21 | flake-utils.lib.eachSystem [
|
|
28 | 26 | (system: let
|
29 | 27 | ## It’s much easier to read from a JSON file than to have JSON import from some other file, so we extract some
|
30 | 28 | ## configuration from the VS Code settings to avoid duplication.
|
31 |
| - vscodeSettings = nixpkgs-release.lib.importJSON ./.vscode/settings.json; |
| 29 | + vscodeSettings = nixpkgs.lib.importJSON ./.vscode/settings.json; |
32 | 30 | versions =
|
33 | 31 | vscodeSettings."haskell.toolchain"
|
34 | 32 | ## There are some things we want to pin that the VS Code Haskell extension doesn’t let us control.
|
35 | 33 | // {
|
36 |
| - hpack = "0.35.2"; |
37 |
| - ormolu = "0.7.2.0"; |
38 |
| - }; |
39 |
| - pkgs = import nixpkgs-haskellNix { |
| 34 | + hpack = "0.36.0"; |
| 35 | + ormolu = "0.7.2.0"; |
| 36 | + }; |
| 37 | + pkgs = import nixpkgs { |
40 | 38 | inherit system;
|
41 | 39 | inherit (haskellNix) config;
|
42 | 40 | overlays = [
|
43 | 41 | haskellNix.overlay
|
44 |
| - (import ./nix/dependencies.nix {inherit nixpkgs-release;}) |
| 42 | + (import ./nix/dependencies.nix) |
45 | 43 | ];
|
46 | 44 | };
|
47 | 45 | unison-project = import ./nix/unison-project.nix {
|
48 |
| - inherit (nixpkgs-haskellNix) lib; |
| 46 | + inherit (nixpkgs) lib; |
49 | 47 | inherit (pkgs) haskell-nix;
|
50 | 48 | };
|
51 | 49 | haskell-nix-flake = import ./nix/haskell-nix-flake.nix {
|
52 | 50 | inherit pkgs unison-project versions;
|
53 |
| - inherit (nixpkgs-haskellNix) lib; |
| 51 | + inherit (nixpkgs) lib; |
54 | 52 | };
|
55 | 53 | renameAttrs = fn:
|
56 |
| - nixpkgs-haskellNix.lib.mapAttrs' (name: value: { |
| 54 | + nixpkgs.lib.mapAttrs' (name: value: { |
57 | 55 | inherit value;
|
58 | 56 | name = fn name;
|
59 | 57 | });
|
|
71 | 69 | all = pkgs.symlinkJoin {
|
72 | 70 | name = "all";
|
73 | 71 | paths = let
|
74 |
| - all-other-packages = |
75 |
| - builtins.attrValues (builtins.removeAttrs self.packages."${system}" [ |
76 |
| - "all" |
77 |
| - "docker-ucm" # this package doesn’t produce a directory |
78 |
| - ]); |
| 72 | + all-other-packages = builtins.attrValues (builtins.removeAttrs self.packages."${system}" [ |
| 73 | + "all" |
| 74 | + "docker-ucm" # this package doesn’t produce a directory |
| 75 | + ]); |
79 | 76 | devshell-inputs =
|
80 | 77 | builtins.concatMap
|
81 | 78 | (devShell: devShell.buildInputs ++ devShell.nativeBuildInputs)
|
|
0 commit comments