-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.nix
40 lines (34 loc) · 875 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
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "tsuna";
version = "unstable-2023-04-02";
src = fetchFromGitHub {
owner = "Emantor";
repo = "tsuna";
rev = "b12222e0448c2ccb8ef7be0cee7e2aff0a4e2549";
hash = "sha256-94TcRYXVDQzQKt7hEkLh4EGSL0edZj3F2QLJRXqFpcc=";
};
cargoHash = "sha256-ql4kojRXXHBSQVPDev8xtM+fhGE6CtnPWXxYHBCHLmM=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.Security
];
meta = with lib; {
description = "Rust client for the pushover open client API";
homepage = "https://github.com/Emantor/tsuna";
license = licenses.gpl2Only;
maintainers = with maintainers; [ emantor ];
};
}