blob: 5a1c96a8b69f37e99b18a3c8d943175eb7c1fcd7 (
plain)
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
|
{
fetchFromGitHub,
lib,
openssl,
rustPlatform,
stdenv,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "taskchampion-sync-server";
version = "0.7.1";
src = fetchFromGitHub {
owner = "GothenburgBitFactory";
repo = "taskchampion-sync-server";
tag = "v${finalAttrs.version}";
hash = "sha256-ywBmVid70ZKUkTwxORrwXPV0zur0RdHToTLTx9ynjqU=";
};
cargoHash = "sha256-1bqZAFKQGTCGUs7EXLwAgUxQU+KmhVGFIATIOb5uOlA=";
env = {
# Use system openssl.
OPENSSL_DIR = lib.getDev openssl;
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
OPENSSL_NO_VENDOR = 1;
};
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
openssl
];
meta = {
description = "Sync server for Taskwarrior 3";
license = lib.licenses.mit;
homepage = "https://github.com/GothenburgBitFactory/taskchampion-sync-server";
maintainers = with lib.maintainers; [ mlaradji ];
mainProgram = "taskchampion-sync-server";
};
})
|