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

cargo-i18n: init at 0.2.12

authored by Weijia Wang and committed by GitHub 4edecfb8 ee0fb2bf

+34
+34
pkgs/by-name/ca/cargo-i18n/package.nix
···
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , stdenv 5 + , darwin 6 + }: 7 + 8 + rustPlatform.buildRustPackage rec { 9 + pname = "cargo-i18n"; 10 + version = "0.2.12"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "kellpossible"; 14 + repo = "cargo-i18n"; 15 + rev = "v${version}"; 16 + hash = "sha256-ck0GYy9DLngOunpItGQ4+qrlzaWDk0zTnIzuRQt2/Gw="; 17 + }; 18 + 19 + cargoHash = "sha256-nvZx2wJDs7PZQLCl8Hrf2blR+lNUBVr6k664VSVQ5iI="; 20 + 21 + buildInputs = lib.optionals stdenv.isDarwin [ 22 + darwin.apple_sdk.frameworks.Foundation 23 + ]; 24 + 25 + cargoTestFlags = [ "--lib" ]; 26 + 27 + meta = with lib; { 28 + description = "Rust Cargo sub-command and libraries to extract and build localization resources to embed in your application/library"; 29 + homepage = "https://github.com/kellpossible/cargo-i18n"; 30 + license = licenses.mit; 31 + maintainers = with maintainers; [ xrelkd ]; 32 + mainProgram = "cargo-i18n"; 33 + }; 34 + }