Skip to content

Commit 767453f

Browse files
docs: fix sharp build failure
use the system libvips and do not compile again. Signed-off-by: Brian McGillion <[email protected]>
1 parent 3526d6b commit 767453f

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

docs/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,15 @@ buildNpmPackage (_finalAttrs: {
6565
pkg-config
6666
];
6767

68+
# Tell sharp to use system libvips instead of building from source
69+
SHARP_IGNORE_GLOBAL_LIBVIPS = "1";
70+
6871
installPhase = ''
6972
runHook preInstall
7073
cp -pr --reflink=auto dist $out/
7174
runHook postInstall
7275
'';
7376

74-
npmDepsHash = "sha256-hG5sbFsp89vjdmJAZdazqzv1eUMxcmTsyWDcTRb3gWU=";
77+
npmDepsHash = "sha256-i01ejnrjAPvqZBdodEbAdcfi4FFjSP/VmuSc2aJdevI=";
7578

7679
})

docs/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)