-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathflake.nix
59 lines (52 loc) · 1.44 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
52
53
54
55
56
57
{
inputs =
{
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
purs-nix.url = "github:purs-nix/purs-nix";
ps-tools.follows = "purs-nix/ps-tools";
utils.url = "github:ursi/flake-utils";
};
outputs = { self, utils, ... }@inputs:
utils.apply-systems { inherit inputs; } ({ pkgs, system, ... }:
let
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
foldable-traversable
];
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'"
'';
};
}
);
}