8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
13 owner = "kellpossible";
16 hash = "sha256-azwQlXsoCgNB/TjSBBE+taUR1POBJXaPnS5Sr+HVR90=";
19 cargoHash = "sha256-vN62QmCuhu7AjL6xSpBU6/ul4WgNLZbjWDCFyHj6rIM=";
21 # Devendor gettext in the gettext-sys crate. The paths to the bin/lib/include folders have to be specified because
22 # setting `GETTEXT_SYSTEM` only works on some platforms (i.e., not Darwin).
24 GETTEXT_BIN_DIR = "${lib.getBin gettext}/bin";
25 GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
26 GETTEXT_INCLUDE_DIR = "${lib.getInclude gettext}/include";
29 cargoTestFlags = [ "--lib" ];
32 description = "Rust Cargo sub-command and libraries to extract and build localization resources to embed in your application/library";
33 homepage = "https://github.com/kellpossible/cargo-i18n";
34 license = licenses.mit;
35 maintainers = with maintainers; [ xrelkd ];
36 mainProgram = "cargo-i18n";