Skip to content

Commit bbe37b6

Browse files
authored
remove flake-utils (purescript#1173)
1 parent 1f75ead commit bbe37b6

File tree

2 files changed

+31
-57
lines changed

2 files changed

+31
-57
lines changed

flake.lock

-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+31-23
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,40 @@
11
{
22
inputs = {
33
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
4-
flake-utils.url = "github:numtide/flake-utils";
54
purescript-overlay.url = "github:thomashoneyman/purescript-overlay";
65
purescript-overlay.inputs.nixpkgs.follows = "nixpkgs";
76
};
87

9-
outputs = { self, nixpkgs, flake-utils, purescript-overlay }:
10-
flake-utils.lib.eachDefaultSystem (system:
11-
let
12-
overlays = [ purescript-overlay.overlays.default ];
13-
pkgs = import nixpkgs {
14-
inherit system overlays;
15-
};
16-
in {
17-
devShells.default = pkgs.mkShell {
18-
name = "spago";
19-
buildInputs = with pkgs; [
20-
purs
21-
purs-tidy
22-
purs-backend-es
23-
spago-unstable
8+
outputs = { self, nixpkgs, ... }@inputs:
9+
let
10+
supportedSystems = [ "aarch64-linux" "x86_64-linux" "aarch64-darwin" "x86_64-darwin" ];
2411

25-
nodejs
26-
esbuild
27-
gh
28-
];
29-
};
30-
}
31-
);
12+
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
13+
14+
nixpkgsFor = forAllSystems (system: import nixpkgs {
15+
inherit system;
16+
overlays = builtins.attrValues self.overlays;
17+
});
18+
in
19+
{
20+
overlays = {
21+
purescript = inputs.purescript-overlay.overlays.default;
22+
};
23+
24+
devShells = forAllSystems (system:
25+
let pkgs = nixpkgsFor.${system}; in {
26+
default = pkgs.mkShell {
27+
name = "spago";
28+
buildInputs = with pkgs; [
29+
purs
30+
purs-tidy
31+
purs-backend-es
32+
spago-unstable
33+
34+
nodejs
35+
esbuild
36+
];
37+
};
38+
});
39+
};
3240
}

0 commit comments

Comments
 (0)