-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
47 lines (40 loc) · 1.27 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
45
46
47
{
description = "A collection of packages related to homomorphic encryption";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
};
outputs = { self, nixpkgs, flake-compat }:
let
supportedSystems = [ "x86_64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
pkgsFor = system: import nixpkgs {
inherit system;
overlays = self.overlays;
};
in
{
overlay = final: prev:
let
he = {
#heaan = final.callPackage ./pkgs/heaan { };
helib = final.callPackage ./pkgs/helib { };
palisade = final.callPackage ./pkgs/palisade { };
seal = final.callPackage ./pkgs/seal { };
tfhe = final.callPackage ./pkgs/tfhe { };
tfhepp = final.callPackage ./pkgs/tfhepp { };
};
in
he // { inherit he; };
overlays = [ self.overlay ];
packages = forAllSystems (system: (pkgsFor system).he);
defaultPackage = forAllSystems (system:
let pkgs = pkgsFor system; in
pkgs.linkFarmFromDrvs "he-packages-unstable"
(builtins.attrValues pkgs.he)
);
};
}