-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
51 lines (46 loc) · 1.49 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ inputs =
{ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
ps-tools.follows = "purs-nix/ps-tools";
purs-nix.url = "github:purs-nix/purs-nix/ps-0.15";
utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, utils, ... }@inputs:
utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ]
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
ps-tools = inputs.ps-tools.legacyPackages.${system};
purs-nix = inputs.purs-nix { inherit system; };
ps =
purs-nix.purs
{ dependencies =
with purs-nix.ps-pkgs;
[ console
effect
prelude
tuples
ordered-collections
];
dir = ./.;
};
in
{ packages.default = ps.modules.Main.bundle {};
devShells.default =
pkgs.mkShell
{ packages =
with pkgs;
[ entr
nodejs
(ps.command {})
ps-tools.for-0_15.purescript-language-server
purs-nix.esbuild
purs-nix.purescript
];
shellHook =
''
alias watch="find src | entr -s 'echo bundling; purs-nix bundle'"
'';
};
}
);
}