fix(node-sub): use symlinkJoin to get deps working
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
21e2502995
commit
4b7aa78957
1 changed files with 36 additions and 22 deletions
|
@ -3,10 +3,11 @@
|
||||||
ffmpeg,
|
ffmpeg,
|
||||||
nodejs_20,
|
nodejs_20,
|
||||||
subsync,
|
subsync,
|
||||||
|
symlinkJoin,
|
||||||
typescript,
|
typescript,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
buildNpmPackage {
|
nodeSubSync = buildNpmPackage {
|
||||||
name = "node-syncsub";
|
name = "node-syncsub";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
npmDepsHash = "sha256-O00VQPCUX6T+rtK3VcAibBipXFwNs4AFA3251qycPBQ=";
|
npmDepsHash = "sha256-O00VQPCUX6T+rtK3VcAibBipXFwNs4AFA3251qycPBQ=";
|
||||||
|
@ -28,6 +29,19 @@ buildNpmPackage {
|
||||||
|
|
||||||
echo '#!/usr/bin/env node' > $out/bin/node-syncsub
|
echo '#!/usr/bin/env node' > $out/bin/node-syncsub
|
||||||
cat ./build/main.js >> $out/bin/node-syncsub
|
cat ./build/main.js >> $out/bin/node-syncsub
|
||||||
|
rm ./build/main.js
|
||||||
chmod +x $out/bin/node-syncsub
|
chmod +x $out/bin/node-syncsub
|
||||||
|
|
||||||
|
mv ./build/**.js $out/bin
|
||||||
'';
|
'';
|
||||||
}
|
};
|
||||||
|
in
|
||||||
|
symlinkJoin {
|
||||||
|
name = "node-syncsub";
|
||||||
|
meta.mainProgram = "node-syncsub";
|
||||||
|
paths = [
|
||||||
|
ffmpeg
|
||||||
|
subsync
|
||||||
|
nodeSubSync
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue