File: flake.nix

package info (click to toggle)
coq-extructures 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 248 kB
  • sloc: makefile: 21
file content (35 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download
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
{
  description = ''
    Finite sets, maps, and other data structures with extensional reasoning
  '';

  inputs.flake-utils.url = "github:numtide/flake-utils";

  outputs = { self, nixpkgs, flake-utils }:
    flake-utils.lib.eachDefaultSystem (system:
      let pkgs = nixpkgs.legacyPackages.${system};
          lib = pkgs.lib; in rec {
            packages = rec {
              coq = pkgs.coq_8_20;
              coqPackages = pkgs.coqPackages_8_20.overrideScope (self: super:
                { mathcomp = super.mathcomp.override {
                    version = "2.2.0";
                  };
                  deriving = super.deriving.overrideAttrs (s: {
                    version = "0.2.0";
                  });
                });
              ocaml = pkgs.ocaml;
            };

            devShell = pkgs.mkShell {
              packages = with packages; [
                coq
                coqPackages.mathcomp.ssreflect
                coqPackages.deriving
                ocaml
              ];
            };
      }
    );
}