Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
481 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
buildNpmPackage,
libsecret,
python3,
pkg-config,
pname,
src,
version,
}:
buildNpmPackage {
pname = "${pname}-node-deps";
inherit version src;
npmDepsHash = "sha256-Efeun7AFMAnoNXLbTGH7OWHaBHT2tO9CodfjKrIYw40=";
nativeBuildInputs = [
python3
pkg-config
];
buildInputs = [ libsecret ];
dontNpmBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/lib
cp -r node_modules $out/lib
runHook postInstall
'';
}