forked from hacl-star/hacl-star
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
40 lines (38 loc) · 1 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
{
description = "HACL*";
inputs = {
fstar.url = "github:fstarlang/fstar";
flake-utils.follows = "fstar/flake-utils";
nixpkgs.follows = "fstar/nixpkgs";
karamel = {
url = "github:fstarlang/karamel";
inputs.fstar.follows = "fstar";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
fstar,
flake-utils,
nixpkgs,
karamel,
}:
flake-utils.lib.eachSystem ["x86_64-linux"] (system: let
pkgs = import nixpkgs {inherit system;};
fstarPackages = fstar.packages.${system};
karamel-home = karamel.packages.${system}.karamel.home;
vale = pkgs.callPackage ./.nix/vale.nix {};
hacl = pkgs.callPackage ./.nix/hacl.nix {
inherit (fstarPackages) ocamlPackages z3 fstar;
inherit vale;
karamel = karamel-home;
fstar-scripts = "${fstar}/.scripts";
};
in {
packages = {
inherit hacl;
default = hacl;
};
});
}