14 stdenv.mkDerivation (finalAttrs: {
15 pname = "crowdin-cli";
19 url = "https://github.com/crowdin/crowdin-cli/releases/download/${finalAttrs.version}/crowdin-cli.zip";
20 hash = "sha256-158zbgYw4FP/vQVsSs9tt9VcisBWpRn/D4ORiM24PYY=";
23 nativeBuildInputs = [ installShellFiles makeWrapper unzip ];
28 install -D crowdin-cli.jar $out/lib/crowdin-cli.jar
30 installShellCompletion --cmd crowdin --bash ./crowdin_completion
32 makeWrapper ${jre}/bin/java $out/bin/crowdin \
34 --add-flags "-jar $out/lib/crowdin-cli.jar" \
35 --prefix PATH : ${lib.makeBinPath [ gawk gnugrep git ]}
40 passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
43 mainProgram = "crowdin";
44 homepage = "https://github.com/crowdin/crowdin-cli/";
45 description = "Command-line client for the Crowdin API";
46 sourceProvenance = with sourceTypes; [ binaryBytecode ];
47 license = licenses.mit;
48 maintainers = with maintainers; [ DamienCassou ];