-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
59 lines (55 loc) · 1.56 KB
/
Copy pathflake.nix
File metadata and controls
59 lines (55 loc) · 1.56 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
description = "secp256k1 scalar formal verification - Rocq + VST";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:NixOS/flake-compat";
flake = false;
};
# NOTE: pinned to the `feat/nix-flake` branch on the remix7531 fork while
# the Nix flake is in review upstream. Swap to
# `github:LLM4Rocq/rocq-mcp/<tag>` once the flake lands there.
rocq-mcp.url = "github:remix7531/rocq-mcp/feat/nix-flake";
rocq-mcp.inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, flake-utils, flake-compat, rocq-mcp, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfreePredicate = pkg:
builtins.elem (pkgs.lib.getName pkg) [ "compcert" ];
};
coqPkgs = pkgs.coqPackages_9_0;
in {
devShells.default = pkgs.mkShell {
shellHook = ''
unset COQPATH
'';
packages = (with coqPkgs; [
VST
compcert
coq
coq-hammer
coq-lsp
flocq
vsrocq-language-server
]) ++ (with pkgs; [
clang
cvc4
eprover
gcc
gmp
gmp.dev
gnumake
m4
pkg-config
vampire
which
]) ++ [
rocq-mcp.packages.${system}.rocq-mcp
];
};
});
}