aboutsummaryrefslogtreecommitdiffstats
path: root/flake.nix
blob: 05ba3ca2dd6772d9dc8081a2d6589f039ca6c058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  description = "Vericert dependencies";

  inputs = { nixpkgs.url = "github:nixos/nixpkgs"; };

  outputs = { self, nixpkgs }:
    let vericertDevPackages = pkgs:
          let
            ncoq = pkgs.coq_8_17;
            ncoqPackages = pkgs.coqPackages_8_17;
          in
            pkgs.mkShell {
              buildInputs = with pkgs;
                [ ncoq ncoq.ocaml ncoqPackages.serapi dune_3 gcc python3 lp_solve ]
                ++ (with ncoq.ocamlPackages; [ findlib menhir menhirLib ocamlgraph ocp-indent utop merlin ])
                ++ (with python3Packages; [ alectryon sphinx_rtd_theme ]);
            };
    in {
      devShell.x86_64-linux = vericertDevPackages nixpkgs.legacyPackages.x86_64-linux;
      devShell.x86_64-darwin = vericertDevPackages nixpkgs.legacyPackages.x86_64-darwin;
    };
}