-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathflake.nix
41 lines (34 loc) · 1.25 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
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) coqPackages;
in
rec {
packages.default = coqPackages.mkCoqDerivation {
pname = "cerise";
version = "0.0.0";
coq-version = "8.18";
src = ./.;
# src = builtins.fetchGit {
# url = ./.;
# submodules = true;
# };
buildInputs = with coqPackages; [ equations iris stdpp ];
meta = with pkgs.lib; {
description = "Cerise, Coq mechanization of a capability machine and principles to reason about the interaction of known and unknown code";
homepage = "https://github.com/logsem/cerise";
license = licenses.bsd3;
};
};
devShells.default = pkgs.mkShell (with packages.default; {
name = pname + "-dev";
packages = buildInputs ++ [ pkgs.coq coqPackages.coq-lsp ];
});
});
}