bruno: add back giflib removal patch

This commit is contained in:
Gutyina Gergő 2024-11-07 01:37:53 +01:00
parent 582038c397
commit cc0b65fb04
No known key found for this signature in database

View File

@ -78,6 +78,14 @@ buildNpmPackage rec {
ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
# remove giflib dependency
npmRebuildFlags = [ "--ignore-scripts" ];
preBuild = ''
substituteInPlace node_modules/canvas/binding.gyp \
--replace-fail "'with_gif%': '<!(node ./util/has_lib.js gif)'" "'with_gif%': 'false'"
npm rebuild
'';
dontNpmBuild = true;
postBuild = ''
npm run build --workspace=packages/bruno-common