git-run: fix dangling symlinks

This commit is contained in:
Bence Madarasz 2025-05-09 17:57:26 +02:00
parent 34fe7674c5
commit 57d500a6f7
No known key found for this signature in database
GPG key ID: 6DA3A9F8693373A0

View file

@ -20,6 +20,15 @@ buildNpmPackage rec {
makeCacheWritable = true;
dontBuild = true;
postInstall = ''
echo "Removing broken symlinks in node_modules/.bin"
rm -f $out/lib/node_modules/${pname}/node_modules/.bin/_mocha
rm -f $out/lib/node_modules/${pname}/node_modules/.bin/he
rm -f $out/lib/node_modules/${pname}/node_modules/.bin/mkdirp
rm -f $out/lib/node_modules/${pname}/node_modules/.bin/mocha
rm -f $out/lib/node_modules/${pname}/node_modules/.bin/rimraf
'';
meta = {
description = "Multiple git repository management tool";
homepage = "https://mixu.net/gr/";