-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
65 lines (57 loc) · 1.98 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
inputs = {
nixpkgs.url = github:nixos/nixpkgs;
flake-utils.url = github:numtide/flake-utils;
ssprove.url = github:sertel/ssprove/nix;
ssprove.inputs.nixpkgs.follows = "nixpkgs";
ssprove.inputs.flake-utils.follows = "flake-utils";
mathcomp-extra.url = github:sertel/mathcomp-extra/nix;
mathcomp-extra.inputs.nixpkgs.follows = "nixpkgs";
mathcomp-extra.inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, flake-utils
, ssprove , mathcomp-extra }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
ocamlPackages = pkgs.ocamlPackages;
coq = pkgs.coq_8_18;
coqPackages = pkgs.coqPackages_8_18.overrideScope
(self: super: {
mathcomp = super.mathcomp.override { version = "2.1.0"; };
mathcomp-analysis = super.mathcomp-analysis.override { version = "1.0.0"; };
});
ssp_args = {
inherit (pkgs) stdenv which;
inherit coqPackages coq;
};
ssprove' = ssprove.mkDrv ssp_args;
mathcomp-extra' = mathcomp-extra.mkDrv
{ inherit coqPackages coq; version = "0.1.0"; };
in {
packages.default = coqPackages.mkCoqDerivation {
pname = "vRATLS";
owner = "Barkhausen-Institut";
version = "0.0.1";
src = ./.;
buildInputs =
(with ocamlPackages; [ dune_3 ])
++
(with pkgs; [coq gnumake])
++
[ssprove' mathcomp-extra'];
meta = {
description = "Formal verification of remote attestation";
license = coqPackages.lib.licenses.mit;
};
};
devShells.default = pkgs.mkShell {
inputsFrom = [self.packages.${system}.default];
shellHook = ''
alias ll="ls -lasi"
alias spacemacs="HOME=. emacs"
'';
};
}
);
}