|
2 | 2 | description = "The PureScript Registry"; |
3 | 3 |
|
4 | 4 | inputs = { |
5 | | - nixpkgs.url = "github:nixos/nixpkgs/release-24.05"; |
| 5 | + nixpkgs.url = "github:nixos/nixpkgs/release-25.05"; |
6 | 6 | flake-utils.url = "github:numtide/flake-utils"; |
7 | 7 |
|
8 | 8 | flake-compat.url = "github:edolstra/flake-compat"; |
|
11 | 11 | purescript-overlay.url = "github:thomashoneyman/purescript-overlay"; |
12 | 12 | purescript-overlay.inputs.nixpkgs.follows = "nixpkgs"; |
13 | 13 |
|
| 14 | + mkSpagoDerivation.url = "github:jeslie0/mkSpagoDerivation"; |
| 15 | + mkSpagoDerivation.inputs.nixpkgs.follows = "nixpkgs"; |
| 16 | + mkSpagoDerivation.inputs.ps-overlay.follows = "purescript-overlay"; |
| 17 | + |
14 | 18 | slimlock.url = "github:thomashoneyman/slimlock"; |
15 | 19 | slimlock.inputs.nixpkgs.follows = "nixpkgs"; |
16 | 20 | }; |
|
21 | 25 | nixpkgs, |
22 | 26 | flake-utils, |
23 | 27 | purescript-overlay, |
| 28 | + mkSpagoDerivation, |
24 | 29 | slimlock, |
25 | 30 | ... |
26 | 31 | }: |
|
44 | 49 | ./foreign |
45 | 50 | ./lib |
46 | 51 | ./scripts |
| 52 | + ./test-utils |
47 | 53 | ./spago.lock |
48 | 54 | ./spago.yaml |
49 | 55 | ] |
|
76 | 82 | # We don't want to force everyone to update their configs if they aren't |
77 | 83 | # normally on flakes. |
78 | 84 | nixFlakes = prev.writeShellScriptBin "nixFlakes" '' |
79 | | - exec ${prev.nixFlakes}/bin/nix --experimental-features "nix-command flakes" "$@" |
| 85 | + exec ${prev.nixVersions.stable}/bin/nix --experimental-features "nix-command flakes" "$@" |
80 | 86 | ''; |
81 | 87 |
|
82 | 88 | # Detects arguments to 'git' containing a URL and replaces them with a |
|
144 | 150 | # Packages associated with the registry, ie. in this repository. |
145 | 151 | registry = |
146 | 152 | let |
147 | | - spago-lock = prev.purix.buildSpagoLock { |
148 | | - src = fileset.toSource { |
149 | | - root = ./.; |
150 | | - fileset = pureScriptFileset; |
151 | | - }; |
152 | | - corefn = true; |
| 153 | + spago-lock = prev.mkSpagoDerivation { |
| 154 | + name = "registry"; |
| 155 | + src = ./.; |
| 156 | + nativeBuildInputs = [ prev.pkgs.spago-bin.spago-0_93_44 prev.pkgs.purescript ]; |
| 157 | + buildPhase = "spago build"; |
| 158 | + installPhase = "mkdir $out; cp -r * $out"; |
153 | 159 | }; |
154 | 160 |
|
155 | 161 | package-lock = |
|
245 | 251 | inherit system; |
246 | 252 | overlays = [ |
247 | 253 | purescript-overlay.overlays.default |
| 254 | + mkSpagoDerivation.overlays.default |
248 | 255 | slimlock.overlays.default |
249 | 256 | registryOverlay |
250 | 257 | ]; |
|
317 | 324 | { |
318 | 325 | nixpkgs.overlays = [ |
319 | 326 | purescript-overlay.overlays.default |
| 327 | + mkSpagoDerivation.overlays.default |
320 | 328 | slimlock.overlays.default |
321 | 329 | registryOverlay |
322 | 330 | ]; |
|
870 | 878 | system = "x86_64-linux"; |
871 | 879 | overlays = [ |
872 | 880 | purescript-overlay.overlays.default |
| 881 | + mkSpagoDerivation.overlays.default |
873 | 882 | slimlock.overlays.default |
874 | 883 | registryOverlay |
875 | 884 | ]; |
|
0 commit comments