|
|
|
@ -6,13 +6,13 @@ |
|
|
|
|
postInstall = '' |
|
|
|
|
mkdir "$out/bin" |
|
|
|
|
echo '#!/bin/sh' >> "$out/bin/matrix-recorder" |
|
|
|
|
echo "'${pkgs.nodejs-12_x}/bin/node'" \ |
|
|
|
|
echo "'${pkgs.nodejs-14_x}/bin/node'" \ |
|
|
|
|
"'$out/lib/node_modules/matrix-recorder/matrix-recorder.js'" \ |
|
|
|
|
'"$@"' >> "$out/bin/matrix-recorder" |
|
|
|
|
echo '#!/bin/sh' >> "$out/bin/matrix-recorder-to-html" |
|
|
|
|
echo 'cd "$1"' >> "$out/bin/matrix-recorder-to-html" |
|
|
|
|
echo "test -d templates/ || ln -sfT '$out/lib/node_modules/matrix-recorder/templates' templates" >> "$out/bin/matrix-recorder-to-html" |
|
|
|
|
echo "'${pkgs.nodejs-12_x}/bin/node'" \ |
|
|
|
|
echo "'${pkgs.nodejs-14_x}/bin/node'" \ |
|
|
|
|
"'$out/lib/node_modules/matrix-recorder/recorder-to-html.js'" \ |
|
|
|
|
'.' >> "$out/bin/matrix-recorder-to-html" |
|
|
|
|
chmod a+x "$out/bin/matrix-recorder" |
|
|
|
|