-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
42 lines (39 loc) · 1.04 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
{
description = "plfa";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/nixpkgs-unstable;
flake-utils.url = github:numtide/flake-utils;
cornelis.url = github:isovector/cornelis;
agda.url = github:agda/agda/8049b1d996e30ce6204bae2cd8043edff4a22625;
agda-stdlib-source = {
url = github:agda/agda-stdlib/c5f42e1fb86b964dfe2558e103f2f4f662e553b3;
flake = false;
};
};
outputs = inputs:
with inputs.flake-utils.lib;
eachDefaultSystem (system:
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.agda.overlay ];
};
cornelis = inputs.cornelis.packages.${system}.cornelis;
agda = pkgs.agda.withPackages (p: [
(p.standard-library.overrideAttrs (oldAttrs: {
version = "nightly";
src = inputs.agda-stdlib-source;
}))
]);
in
{
# nix develop
devShell =
pkgs.mkShell {
buildInputs = [
cornelis
agda
];
};
});
}