-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathflake.nix
32 lines (28 loc) · 925 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
24
25
26
27
28
29
30
31
{
description = "AWS-LC is a general-purpose cryptographic library";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
outputs = { self, nix, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
shells = import ./nix/devshell.nix { pkgs = pkgs; };
in rec {
packages.aws-lc = pkgs.stdenv.mkDerivation {
src = self;
name = "aws-lc";
inherit system;
nativeBuildInputs = [ pkgs.ninja pkgs.cmake pkgs.perl pkgs.go ];
cmakeFlags = [
"-GNinja"
"-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
];
checkPhase = ''
ninja run_minimal_tests
'';
};
formatter = pkgs.nixfmt;
packages.default = packages.aws-lc;
devShells.default = shells;
});
}