nixpkgs/pkgs/applications/misc/terminal-typeracer/default.nix

35 lines
853 B
Nix
Raw Normal View History

{ lib, stdenv
2020-07-23 09:49:53 +00:00
, fetchFromGitLab
, rustPlatform
, pkg-config
, openssl
, sqlite
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "terminal-typeracer";
2020-12-31 17:16:47 +00:00
version = "2.0.4";
2020-07-23 09:49:53 +00:00
src = fetchFromGitLab {
owner = "ttyperacer";
repo = pname;
rev = "v${version}";
2020-12-31 17:16:47 +00:00
sha256 = "RjGHY6KN6thxbg9W5FRwaAmUeD+5/WCeMCvzFHqZ+J4=";
2020-07-23 09:49:53 +00:00
};
2020-12-31 17:16:47 +00:00
cargoSha256 = "VSwku0rtQECirCHx2CXe72gCA+p3DdPC4YYwEYu8WfM=";
2020-07-23 09:49:53 +00:00
2021-01-15 05:42:41 +00:00
buildInputs = [ openssl sqlite ] ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
2020-07-23 09:49:53 +00:00
nativeBuildInputs = [ pkg-config ];
meta = with lib; {
2020-07-23 09:49:53 +00:00
description = "An open source terminal based version of Typeracer written in rust";
homepage = "https://gitlab.com/ttyperacer/terminal-typeracer";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ yoctocell ];
platforms = platforms.x86_64;
};
}