-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
23 lines (22 loc) · 943 Bytes
/
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
{
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem flake-utils.lib.allSystems (system:
let pkgs = import nixpkgs { inherit system; };
in
{
packages = {
liboqs = pkgs.callPackage ./liboqs.nix {};
oqsprovider = pkgs.callPackage ./oqs-provider.nix { liboqs = self.packages.${system}.liboqs; };
oqsprovider-static = pkgs.callPackage ./oqs-provider.nix { liboqs = self.packages.${system}.liboqs; enableStatic = true; };
openssl-quantum = pkgs.callPackage ./openssl-with-providers.nix { providers = [ self.packages.${system}.oqsprovider ]; };
default = self.packages.${system}.openssl-quantum;
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [
self.packages.${system}.default
];
};
}
);
}