From 3ca8e690ed58f4267cc4ec132551d24a9a557e85 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 28 Aug 2024 17:39:11 +0300 Subject: Bring in gettext and related tools xtr is better at extracting translatables from Rust than xgettext is. --- pkgs/xtr/default.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pkgs/xtr/default.nix (limited to 'pkgs/xtr/default.nix') diff --git a/pkgs/xtr/default.nix b/pkgs/xtr/default.nix new file mode 100644 index 0000000..1d7a600 --- /dev/null +++ b/pkgs/xtr/default.nix @@ -0,0 +1,23 @@ +{ lib, rustPlatform, fetchFromGitHub }: +rustPlatform.buildRustPackage rec { + pname = "xtr"; + version = "0.1.9"; + + src = fetchFromGitHub { + owner = "woboq"; + repo = "tr"; + rev = "v${version}"; + hash = "sha256-Un7p8n0+rSyDzEaUGuFXXWUDShR6AZgIYza40ahdZU8="; + }; + + cargoLock = { + lockFile = ./Cargo.lock; + }; + postPatch = "ln -s ${./Cargo.lock} ./Cargo.lock"; + + meta = { + maintainers = [ lib.maintainers.vikanezrimaya ]; + license = lib.licenses.agpl3Only; + homepage = "https://github.com/woboq/tr"; + }; +} -- cgit 1.4.1