-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdefault.nix
More file actions
40 lines (34 loc) · 871 Bytes
/
default.nix
File metadata and controls
40 lines (34 loc) · 871 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
{
lib,
naersk-lib,
pkg-config,
openssl,
stdenv,
darwin,
src,
}:
let
cargoToml = builtins.fromTOML (builtins.readFile (src + /Cargo.toml));
in
naersk-lib.buildPackage {
pname = "deadlock-api-ingest";
version = cargoToml.package.version;
inherit src;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
# naersk runs tests by default
# doCheck = true;
meta = {
description = "Monitors your Steam HTTP cache for Deadlock game replay files and automatically submits match metadata to the Deadlock API";
homepage = "https://github.com/deadlock-api/deadlock-api-ingest";
license = lib.licenses.mit; # or licenses.asl20, etc.
mainProgram = "deadlock-api-ingest";
};
}