-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
37 lines (35 loc) · 1.05 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
{
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";
};
hacl = {
url = "github:hacl-star/hacl-star";
inputs = {
fstar.follows = "fstar";
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
karamel.follows = "karamel";
};
};
};
outputs = { self, flake-utils, nixpkgs, fstar, karamel, hacl }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
haclPackages = {
inherit (fstar.packages.${system}) z3 fstar;
inherit (karamel.packages.${system}) karamel;
inherit (hacl.packages.${system}) hacl;
};
in {
packages = haclPackages // { default = hacl.packages.${system}.hacl; };
hydraJobs = haclPackages;
});
}