-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
40 lines (35 loc) · 894 Bytes
/
default.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
{ lib
, rustPlatform
, openssl
, pkg-config
}:
let
fs = lib.fileset;
sourceFiles = fs.unions [
./Cargo.toml
./Cargo.lock
./src/main.rs
];
in
rustPlatform.buildRustPackage {
pname = "cheap-ichnaea";
version = "0.2.3";
src = fs.toSource {
root = ./.;
fileset = sourceFiles;
};
# cargoHash = lib.fakeHash;
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
];
meta = with lib; {
description = "Mimics the ichnaea geolocate v1 API";
license = licenses.mit;
};
}