Merge pull request #255119 from mechanicstriker/terminal-typeracer

terminal-typeracer: 2.0.8 -> 2.1.3
This commit is contained in:
Fabián Heredia Montiel 2023-09-16 12:01:10 -06:00 committed by GitHub
commit f5579deb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,9 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitLab
, rustPlatform
, pkg-config
, libgit2
, openssl
, sqlite
, libiconv
@ -10,20 +12,24 @@
rustPlatform.buildRustPackage rec {
pname = "terminal-typeracer";
version = "2.0.8";
version = "2.1.3";
src = fetchFromGitLab {
owner = "ttyperacer";
repo = pname;
rev = "v${version}";
sha256 = "Fb2MCQaQaJseXa8Csesz1s5Yel4wcSMxfMeKSW7rlU4=";
hash = "sha256-S3OW6KihRd6ReTWUXRb1OWC7+YoxehjFRBxcnJVgImU=";
};
cargoSha256 = "sha256-SAVDSUm2jpDwTfwo4L6MVUKzBxZvCfjn4UNIGUJziSY=";
cargoHash = "sha256-OwbFIbKB/arj+3gq2tfEq8yTKSUPBQNYJNzrWvDv4A4=";
buildInputs = [ openssl sqlite ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
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 = "An open source terminal based version of Typeracer written in rust";
homepage = "https://gitlab.com/ttyperacer/terminal-typeracer";