forked from hacl-star/hacl-star
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
44 lines (42 loc) · 1.21 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
{
description = "Hacl*";
inputs = {
fstar-src = {
url = "github:fstarlang/fstar";
flake = false;
};
karamel-src = {
url = "github:fstarlang/karamel";
flake = false;
};
hacl-nix = {
url = "github:hacl-star/hacl-nix";
inputs.fstar-src.follows = "fstar-src";
inputs.karamel-src.follows = "karamel-src";
};
nixpkgs.follows = "hacl-nix/nixpkgs";
flake-utils.follows = "hacl-nix/flake-utils";
};
outputs = { hacl-nix, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; };
ocamlPackages = pkgs.ocaml-ng.ocamlPackages_4_12;
hacl = pkgs.callPackage ./. {
inherit (hacl-nix.packages.${system}) z3 fstar karamel vale;
inherit ocamlPackages;
};
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;
};
});
}