crowdin-cli: init at 3.6.4
This commit is contained in:
parent
c28262e2fe
commit
fcc699a051
2 changed files with 47 additions and 0 deletions
45
pkgs/tools/text/crowdin-cli/default.nix
Normal file
45
pkgs/tools/text/crowdin-cli/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, gawk
|
||||
, git
|
||||
, gnugrep
|
||||
, installShellFiles
|
||||
, jre
|
||||
, makeWrapper
|
||||
, unzip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "crowdin-cli";
|
||||
version = "3.6.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/crowdin/${pname}/releases/download/${version}/${pname}.zip";
|
||||
sha256 = "123mv0s1jppidmwsvr8a6f8429xmpskxmnv4p8jpnfa9zrw86aaw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ installShellFiles makeWrapper unzip ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -D crowdin-cli.jar $out/lib/crowdin-cli.jar
|
||||
|
||||
installShellCompletion --cmd crowdin --bash ./crowdin_completion
|
||||
|
||||
makeWrapper ${jre}/bin/java $out/bin/crowdin \
|
||||
--argv0 crowdin \
|
||||
--add-flags "-jar $out/lib/crowdin-cli.jar" \
|
||||
--prefix PATH : ${lib.makeBinPath [ gawk gnugrep git ]}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/crowdin/crowdin-cli/";
|
||||
description = "A command-line client for the Crowdin API";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ DamienCassou ];
|
||||
};
|
||||
}
|
|
@ -13883,6 +13883,8 @@ with pkgs;
|
|||
|
||||
gtkdialog = callPackage ../development/tools/misc/gtkdialog { };
|
||||
|
||||
crowdin-cli = callPackage ../tools/text/crowdin-cli { };
|
||||
|
||||
gtranslator = callPackage ../tools/text/gtranslator { };
|
||||
|
||||
guff = callPackage ../tools/graphics/guff { };
|
||||
|
|
Loading…
Reference in a new issue