forked from enarx/enarx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
69 lines (62 loc) · 1.67 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
description = "Tools for deploying WebAssembly into Enarx Keeps.";
inputs.nixify.url = github:enarx/nixify;
outputs = {nixify, ...}: let
in
with nixify.lib;
rust.mkFlake {
src = ./.;
ignorePaths = [
"/.codecov.yml"
"/.github"
"/.gitignore"
"/.mailmap"
"/crates/enarx-config/LICENSE"
"/crates/exec-wasmtime/LICENSE"
"/crates/sallyport/.gitignore"
"/crates/sallyport/LICENSE"
"/crates/shim-kvm/LICENSE"
"/crates/shim-kvm/README.md"
"/crates/shim-sgx/LICENSE"
"/deny.toml"
"/docs"
"/flake.lock"
"/flake.nix"
"/helper"
"/LICENSE"
"/README-DEBUG.md"
"/release"
"/SECURITY.md"
"/shell.nix"
];
clippy.allFeatures = true;
clippy.allTargets = true;
clippy.deny = ["warnings"];
targets.x86_64-unknown-none = false;
buildOverrides = {
pkgs,
buildInputs ? [],
...
} @ args:
with pkgs.lib;
with (args.pkgsCross or pkgs); {
buildInputs =
buildInputs
++ optional stdenv.targetPlatform.isDarwin darwin.apple_sdk.frameworks.Security;
};
withDevShells = {
pkgs,
devShells,
...
}:
with pkgs.lib;
extendDerivations {
buildInputs =
[
pkgs.openssl
]
++ optional pkgs.stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security;
}
devShells;
};
}