11 rustPlatform.buildRustPackage rec {
12 pname = "terminal-typeracer";
15 src = fetchFromGitLab {
19 sha256 = "Fb2MCQaQaJseXa8Csesz1s5Yel4wcSMxfMeKSW7rlU4=";
22 cargoSha256 = "sha256-SAVDSUm2jpDwTfwo4L6MVUKzBxZvCfjn4UNIGUJziSY=";
24 buildInputs = [ openssl sqlite ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
25 nativeBuildInputs = [ pkg-config ];
28 description = "An open source terminal based version of Typeracer written in rust";
29 homepage = "https://gitlab.com/ttyperacer/terminal-typeracer";
30 license = licenses.gpl3Plus;
31 maintainers = with maintainers; [ yoctocell ];
32 mainProgram = "typeracer";
33 platforms = platforms.unix;