Unverified Commit a3b4e672 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

i18next-cli: init at 1.20.4 (#458781)

parents 56b0966f b68a04f2
Loading
Loading
Loading
Loading
+8796 −0

File added.

Preview size limit exceeded, changes collapsed.

+38 −0
Original line number Diff line number Diff line
{
  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";
  };
}