i18next-cli: init at 1.20.4 (#458781)
This commit is contained in:
+8796
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,38 @@
|
||||
{
|
||||
lib,
|
||||
buildNpmPackage,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
}:
|
||||
buildNpmPackage rec {
|
||||
pname = "i18next-cli";
|
||||
version = "1.20.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "i18next";
|
||||
repo = "i18next-cli";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-jidpGVdyi7slFAY1nwbhFx8QCZQ+VKgWybpQudY4zIM=";
|
||||
};
|
||||
|
||||
# NOTE: Generating lock-file
|
||||
# npm install --package-lock-only
|
||||
postPatch = ''
|
||||
cp ${./package-lock.json} package-lock.json
|
||||
'';
|
||||
|
||||
npmDepsHash = "sha256-9WsQEDeVsNl4XRN5CPbqdHZihPJmNT3LaEmuTOksyBo=";
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [ "--generate-lockfile" ];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "A unified, high-performance i18next CLI";
|
||||
changelog = "https://github.com/i18next/i18next-cli/releases/tag/v${version}";
|
||||
homepage = "https://www.locize.com/blog/i18next-cli";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.pbek ];
|
||||
mainProgram = "i18next-cli";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user