forked from purescript/package-sets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
40 lines (36 loc) · 969 Bytes
/
default.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
let
pkgs = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/21.05.tar.gz";
}) {};
easy-ps = import (
pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-purescript-nix";
rev = "0ad5775c1e80cdd952527db2da969982e39ff592";
sha256 = "0x53ads5v8zqsk4r1mfpzf5913byifdpv5shnvxpgw634ifyj1kg";
}
) {
inherit pkgs;
};
easy-dhall = import (
pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-dhall-nix";
rev = "9bd1bea0dcebe1d1d120c0fd1ba76683dc4a62e3";
sha256 = "1gdx1iqhr3ih3f2v304yjnpjqydpl0x4ngrg58qa4x5wlcr5rdhl";
}
) {
inherit pkgs;
};
purs = easy-ps.purs-0_15_0;
in
pkgs.runCommand "easy-ps-test" {
buildInputs =
builtins.attrValues {
inherit (easy-ps) psc-package spago;
} ++
builtins.attrValues {
inherit (easy-dhall) dhall-simple dhall-json-simple;
} ++
[ pkgs.git pkgs.wget pkgs.jq purs ];
} ""