This commit is contained in:
4DBug
2026-08-26 15:02:57 -05:00
parent a7db6a93d1
commit 261e475d24
+3 -2
View File
@@ -33,13 +33,14 @@
inherit src npmDeps; inherit src npmDeps;
nativeBuildInputs = [ pkgs.nodejs pkgs.npmHooks.npmConfigHook ];
dontConfigure = true; dontConfigure = true;
dontBuild = true; dontBuild = true;
installPhase = '' installPhase = ''
mkdir -p $out/lib/bug-tv $out/bin mkdir -p $out/lib/bug-tv $out/bin
cp -r rest mod providers package.json $out/lib/bug-tv/ cp -r rest mod providers package.json node_modules $out/lib/bug-tv/
ln -s ${npmDeps} $out/lib/bug-tv/node_modules
printf '%s\n' \ printf '%s\n' \
'#!${pkgs.bash}/bin/bash' \ '#!${pkgs.bash}/bin/bash' \
'exec ${pkgs.nodejs}/bin/node "$out/lib/bug-tv/rest/server.js" "$@"' \ 'exec ${pkgs.nodejs}/bin/node "$out/lib/bug-tv/rest/server.js" "$@"' \