-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
41 lines (37 loc) · 1.28 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
{
description = ''
Finite sets, maps, and other data structures with extensional reasoning
'';
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.deriving.url = "github:arthuraa/deriving/v0.2.0";
inputs.deriving.inputs.nixpkgs.follows = "nixpkgs";
inputs.deriving.inputs.flake-utils.follows = "flake-utils";
outputs = { self, nixpkgs, flake-utils, deriving }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
derivingSrc = deriving;
lib = pkgs.lib; in rec {
packages = rec {
coq = pkgs.coq_8_17;
coqPackages = pkgs.coqPackages_8_17.overrideScope' (self: super:
{ mathcomp = super.mathcomp.override {
version = "2.0.0";
};
deriving = super.deriving.overrideAttrs (s: {
version = "0.2.0";
src = derivingSrc;
});
});
ocaml = pkgs.ocaml;
};
devShell = pkgs.mkShell {
packages = with packages; [
coq
coqPackages.mathcomp.ssreflect
coqPackages.deriving
ocaml
];
};
}
);
}