-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
36 lines (34 loc) · 1.01 KB
/
shell.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
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [
(agda.withPackages (
let stdlib = (agdaPackages.standard-library.overrideAttrs (oldAttrs: {
version = "2.0";
src = fetchFromGitHub {
repo = "agda-stdlib";
owner = "agda";
rev = "v2.0";
hash = "sha256-TjGvY3eqpF+DDwatT7A78flyPcTkcLHQ1xcg+MKgCoE=";
};
})); in [
stdlib
(agdaPackages.agda-categories.overrideAttrs (oldAttrs : {
version = "0.2.0";
src = fetchFromGitHub {
repo = "agda-categories";
owner = "agda";
rev = "81d03d50386daea841dbd07db0ab85792c79f38a";
hash = "sha256-0Y2sfcZeMxIZdyzDsLcQwNIC7l6gW/I0ir6HVToDLwY=";
};
# without this nix might use a wrong version of the stdlib to try and typecheck agda-categories
buildInputs = [ (agda.withPackages [ stdlib ]) ];
GHCRTS = "-M6G";
}))
])
)
];
shellHook = ''
# ...
'';
}