Skip to content

Commit d96a096

Browse files
authored
google-clasp: fix build by removing dangling symlinks (#385556)
2 parents 633cd02 + f100a18 commit d96a096

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pkgs/by-name/go/google-clasp/package.nix

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ buildNpmPackage rec {
1919

2020
# `npm run build` tries installing clasp globally
2121
npmBuildScript = [ "compile" ];
22+
# Remove dangling symlink of a dependency
23+
postInstall = ''
24+
rm $out/lib/node_modules/@google/clasp/node_modules/.bin/sshpk-{verify,sign,conv}
25+
'';
2226

23-
meta = with lib; {
27+
meta = {
2428
description = "Develop Apps Script Projects locally";
2529
mainProgram = "clasp";
2630
homepage = "https://github.com/google/clasp#readme";
2731
changelog = "https://github.com/google/clasp/releases/tag/v${version}";
28-
license = licenses.asl20;
29-
maintainers = with maintainers; [ natsukium ];
32+
license = lib.licenses.asl20;
33+
maintainers = with lib.maintainers; [ natsukium ];
3034
};
3135
}

0 commit comments

Comments
 (0)