Files
nixpkgs/pkgs/tools/admin/pgadmin/mozjpeg.patch
Florian Brandes 925b2a5177 pgadmin4: fix build for sandbox=relaxed builds on darwin
fixes: clang: error: no such file or directory: '/usr/local/lib/libpng16.a'
on sandboxed darwin boxes

1. mozjpeg hasn't been updated since 2021. The newest commit from 2023
  fixes the build on darwin but no new release was put forward
  (see imagemin/mozjpeg-bin#64 and imagemin/mozjpeg-bin#81)
2. This prompts to manually patching the yarn.lock file
3. Which also needs to split the yarnConfigHook logic and
  duplicate it in parts in the derivation

The benefit is to be able to build pgadmin on aarch64-darwin
without network.

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
(cherry picked from commit 10ff832c4f)
2025-05-19 19:46:30 +00:00

46 lines
1.4 KiB
Diff

diff --git a/yarn.lock b/yarn.lock
index fa189ef..54066a6 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -7299,6 +7299,23 @@ __metadata:
languageName: node
linkType: hard
+"execa@npm:^7.1.1":
+ version: 7.1.1
+ resolution: "execa@npm:7.1.1"
+ dependencies:
+ cross-spawn: ^7.0.3
+ get-stream: ^6.0.1
+ human-signals: ^3.0.1
+ is-stream: ^3.0.0
+ merge-stream: ^2.0.0
+ npm-run-path: ^5.1.0
+ onetime: ^6.0.0
+ signal-exit: ^3.0.7
+ strip-final-newline: ^3.0.0
+ checksum: 21fa46fc69314ace4068cf820142bdde5b643a5d89831c2c9349479c1555bff137a291b8e749e7efca36535e4e0a8c772c11008ca2e84d2cbd6ca141a3c8f937
+ languageName: node
+ linkType: hard
+
"executable@npm:^4.1.0":
version: 4.1.1
resolution: "executable@npm:4.1.1"
@@ -11027,13 +11044,14 @@ __metadata:
"mozjpeg@npm:^8.0.0":
version: 8.0.0
- resolution: "mozjpeg@npm:8.0.0"
+ resolution: "mozjpeg@https://github.com/imagemin/mozjpeg-bin.git#commit=c0587fbc00b21ed8cad8bae499a0827baeaf7ffa"
dependencies:
bin-build: ^3.0.0
bin-wrapper: ^4.0.0
+ execa: ^7.1.1
bin:
mozjpeg: cli.js
- checksum: cba27c2efbc21a48434da1c6c8d6886988432430f958315fc59ef9b52bc2d6ee597e19f1cf6aae0fd611d5b2a113561fe2e85ec30a1ccd55c007340c638eb557
+ checksum: cba27c2efbc21a48434da1c6c8d6886988432430f958315fc59ef9b52bc2d6ee597e19f1cf6aae0fd611d5b2a113561fe2e85ec30a1ccd55c007340c638eb556
languageName: node
linkType: hard