13 rustPlatform.buildRustPackage rec {
14 pname = "terminal-typeracer";
17 src = fetchFromGitLab {
21 hash = "sha256-S3OW6KihRd6ReTWUXRb1OWC7+YoxehjFRBxcnJVgImU=";
24 cargoHash = "sha256-OwbFIbKB/arj+3gq2tfEq8yTKSUPBQNYJNzrWvDv4A4=";
26 nativeBuildInputs = [ pkg-config ];
28 buildInputs = [ libgit2 openssl sqlite ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv Security ];
30 OPENSSL_NO_VENDOR = 1;
31 LIBGIT2_NO_VENDOR = 1;
34 description = "Open source terminal based version of Typeracer written in rust";
35 homepage = "https://gitlab.com/ttyperacer/terminal-typeracer";
36 license = licenses.gpl3Plus;
37 maintainers = with maintainers; [ yoctocell ];
38 mainProgram = "typeracer";
39 platforms = platforms.unix;