forked from hacl-star/hacl-star
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (41 loc) · 1.35 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
{
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;
};
hydraJobs = {
inherit hacl;
hacl-build-products = hacl.passthru.build-products;
hacl-stats = hacl.passthru.stats;
hacl-dist-compare = hacl.passthru.dist-compare;
hacl-dist-list = hacl.passthru.dist-list;
hacl-resource-monitor = hacl.passthru.resource-monitor;
};
});
}