From e6cad8da445ddab1b54a982774641866bd33ab90 Mon Sep 17 00:00:00 2001 From: xrelkd <46590321+xrelkd@users.noreply.github.com> Date: Thu, 28 Sep 2023 21:23:22 +0800 Subject: [PATCH] cargo-i18n: init at 0.2.12 --- pkgs/by-name/ca/cargo-i18n/package.nix | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/by-name/ca/cargo-i18n/package.nix diff --git a/pkgs/by-name/ca/cargo-i18n/package.nix b/pkgs/by-name/ca/cargo-i18n/package.nix new file mode 100644 index 000000000000..3d43b955e87f --- /dev/null +++ b/pkgs/by-name/ca/cargo-i18n/package.nix @@ -0,0 +1,28 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +rustPlatform.buildRustPackage rec { + pname = "cargo-i18n"; + version = "0.2.12"; + + src = fetchFromGitHub { + owner = "kellpossible"; + repo = "cargo-i18n"; + rev = "v${version}"; + hash = "sha256-ck0GYy9DLngOunpItGQ4+qrlzaWDk0zTnIzuRQt2/Gw="; + }; + + cargoHash = "sha256-nvZx2wJDs7PZQLCl8Hrf2blR+lNUBVr6k664VSVQ5iI="; + + cargoTestFlags = [ "--lib" ]; + + meta = with lib; { + description = "Rust Cargo sub-command and libraries to extract and build localization resources to embed in your application/library"; + homepage = "https://github.com/kellpossible/cargo-i18n"; + license = licenses.mit; + maintainers = with maintainers; [ xrelkd ]; + mainProgram = "cargo-i18n"; + }; +}