-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdefault.nix
More file actions
43 lines (37 loc) · 855 Bytes
/
default.nix
File metadata and controls
43 lines (37 loc) · 855 Bytes
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
{
lib,
rustPlatform,
openssl,
pkg-config,
}: let
toml = (lib.importTOML ./Cargo.toml).package;
in
rustPlatform.buildRustPackage {
pname = "furnace";
inherit (toml) version;
nativeBuildInputs = [
openssl
pkg-config
];
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.intersection (lib.fileset.fromSource (lib.sources.cleanSource ./.)) (
lib.fileset.unions [
./Cargo.toml
./Cargo.lock
./src
./tests
./benches
# For tests and benchmark
./test_model.mpk
]
);
};
cargoLock.lockFile = ./Cargo.lock;
meta = {
inherit (toml) homepage description;
license = lib.licenses.mit;
mainProgram = "furnace";
};
}