-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
36 lines (35 loc) · 1.31 KB
/
flake.nix
File metadata and controls
36 lines (35 loc) · 1.31 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
{
inputs = {
nixpkgs.follows = "dolev-yao-star-flake/nixpkgs";
fstar-flake.follows = "dolev-yao-star-flake/fstar-flake";
comparse-flake.follows = "dolev-yao-star-flake/comparse-flake";
dolev-yao-star-flake.url = "github:REPROSEC/dolev-yao-star-extrinsic";
};
outputs = {self, nixpkgs, fstar-flake, comparse-flake, dolev-yao-star-flake}:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
z3 = fstar-flake.packages.${system}.z3;
fstar = fstar-flake.packages.${system}.fstar;
comparse = comparse-flake.packages.${system}.comparse;
dolev-yao-star = dolev-yao-star-flake.packages.${system}.dolev-yao-star;
dolev-yao-star-tutorial = pkgs.callPackage ./default.nix {inherit fstar z3 comparse dolev-yao-star; ocamlPackages = pkgs.ocaml-ng.ocamlPackages_4_14;};
in {
packages.${system} = {
default = dolev-yao-star-tutorial;
inherit dolev-yao-star-tutorial;
};
devShells.${system}.default = pkgs.mkShell {
packages = [
fstar z3
] ++ (with pkgs.ocaml-ng.ocamlPackages_4_14; [
ocaml dune_3 findlib yojson
])
++ (fstar.buildInputs);
};
checks.${system} = {
dolev-yao-star-tutorial-build = dolev-yao-star-tutorial;
dolev-yao-star-tutorial-tests = dolev-yao-star-tutorial.tests;
};
};
}