uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
51
pkgs/tools/text/crowdin-cli/default.nix
Normal file
51
pkgs/tools/text/crowdin-cli/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, gawk
|
||||
, git
|
||||
, gnugrep
|
||||
, installShellFiles
|
||||
, jre
|
||||
, makeWrapper
|
||||
, crowdin-cli
|
||||
, testers
|
||||
, unzip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "crowdin-cli";
|
||||
version = "3.7.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/crowdin/${pname}/releases/download/${version}/${pname}.zip";
|
||||
sha256 = "sha256-z9c12KKrh4hV7A92qinNCQGTxZI6IsmJ3Z+3ZcZZljk=";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion { package = crowdin-cli; };
|
||||
|
||||
meta = with lib; {
|
||||
mainProgram = "crowdin";
|
||||
homepage = "https://github.com/crowdin/crowdin-cli/";
|
||||
description = "A command-line client for the Crowdin API";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ DamienCassou ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue