blob: 80ece5bded7a52c52741575e6884db711806af38 (
plain) (
blame)
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
|
{ lib
, stdenv
, fetchFromGitLab
, rustPlatform
, pkg-config
, libgit2
, openssl
, sqlite
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "terminal-typeracer";
version = "2.1.3";
src = fetchFromGitLab {
owner = "ttyperacer";
repo = pname;
rev = "v${version}";
hash = "sha256-S3OW6KihRd6ReTWUXRb1OWC7+YoxehjFRBxcnJVgImU=";
};
cargoHash = "sha256-OwbFIbKB/arj+3gq2tfEq8yTKSUPBQNYJNzrWvDv4A4=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libgit2 openssl sqlite ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
OPENSSL_NO_VENDOR = 1;
LIBGIT2_NO_VENDOR = 1;
meta = with lib; {
description = "Open source terminal based version of Typeracer written in rust";
homepage = "https://gitlab.com/ttyperacer/terminal-typeracer";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ yoctocell ];
mainProgram = "typeracer";
platforms = platforms.unix;
};
}
|