depot/third_party/nixpkgs/pkgs/by-name/ca/cargo-i18n/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
856 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-i18n";
version = "0.2.13";
src = fetchFromGitHub {
owner = "kellpossible";
repo = "cargo-i18n";
rev = "v${version}";
hash = "sha256-azwQlXsoCgNB/TjSBBE+taUR1POBJXaPnS5Sr+HVR90=";
};
cargoHash = "sha256-vN62QmCuhu7AjL6xSpBU6/ul4WgNLZbjWDCFyHj6rIM=";
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";
};
}