I try packaging voice over translation, but I do not know the npm ecosystem
{ buildNpmPackage, fetchurl, lib, nodejs, cacert }:
buildNpmPackage rec {
pname = "vot-cli";
version = "1.4.3";
src = fetchurl {
url = "https://registry.npmjs.org/${pname}/-/${pname}-${version}.tgz";
hash = "sha256-eOUfy6l48MD9IcWiFlC142vXvo5XobKTJ2uC6xzDGS4=";
};
nativeBuildInputs = [ cacert ];
postPatch = ''
export HOME=$TMPDIR
export SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt
${nodejs}/bin/npm install --package-lock-only --no-audit --no-fund --ignore-scripts
'';
npmDepsHash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
meta = {
description = "Voice Over Translation CLI tool";
homepage = "https://www.npmjs.com/package/vot-cli";
license = lib.licenses.mit;
platforms = lib.platforms.all;
};
}
But this derivation not worked. Please help write correct derivation