From af830975eaf9514434dea4780bc449c9a7ec5855 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Wed, 4 May 2022 23:31:56 +0800 Subject: [PATCH] thokr: init at 0.3.0 --- pkgs/default.nix | 1 + pkgs/thokr.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/thokr.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index cc818112..cc0acc13 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -42,6 +42,7 @@ let skeuowaita-icon-theme = callPackage ./skeuowaita-icon-theme.nix { }; text-engine = callPackage ./text-engine.nix { }; tic-80 = callPackage ./tic-80 { }; + thokr = callPackage ./thokr.nix { }; segno = libsForQt5.callPackage ./segno.nix { }; vpaint = libsForQt5.callPackage ./vpaint.nix { }; wayback = libsForQt5.callPackage ./wayback.nix { }; diff --git a/pkgs/thokr.nix b/pkgs/thokr.nix new file mode 100644 index 00000000..2abbe179 --- /dev/null +++ b/pkgs/thokr.nix @@ -0,0 +1,21 @@ +{ stdenv, lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "thokr"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "coloradocolby"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-iIa8hALRTEHQe/OKTR1a6yvEw+2o8aQX95l43k2LbXo="; + }; + + cargoSha256 = "sha256-3oeQeJn7KHytDg1y2X6L5NCZdCLmgEjL3u2UC3Q4fZ8="; + + meta = with lib; { + homepage = "https://github.com/coloradocolby/thokr"; + description = "Sleek typing TUI written in Rust."; + license = licenses.mit; + }; +}