-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
33 lines (31 loc) · 1023 Bytes
/
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
{
description = "Web development environment";
inputs = {
nixpkgs-stable.url = "github:NixOS/nixpkgs/release-21.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
utils.url = "github:numtide/flake-utils";
easy-purescript-src = {
url = "github:justinwoo/easy-purescript-nix";
flake = false;
};
};
outputs = { nixpkgs-stable, nixpkgs-unstable, easy-purescript-src, utils, ... }:
let name = "purescript-effectful";
in
utils.lib.eachDefaultSystem (system:
let
easy-purescript = import easy-purescript-src { pkgs = pkgs.stable; };
pkgs = {
stable = import nixpkgs-stable {
inherit system;
overlays = [ (_: _: { inherit (easy-purescript) purs-tidy pulp; purescript = easy-purescript.purs-0_14_5; }) ];
};
unstable = import nixpkgs-unstable { inherit system; };
};
in
{
devShell = import ./shell.nix {
inherit name pkgs;
};
});
}