Merge pull request #257836 from xrelkd/add/cargo-i18n

cargo-i18n: init at 0.2.12
This commit is contained in:
Weijia Wang 2023-09-29 08:01:42 +02:00 committed by GitHub
commit 4edecfb8a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,34 @@
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
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=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Foundation
];
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";
};
}