From efde7f61a715c94d585da9ae96beefb47533beeb Mon Sep 17 00:00:00 2001 From: marius david Date: Sun, 21 Jul 2024 15:12:13 +0200 Subject: [PATCH] lemmy-ui: properly replace the vips dependancy --- pkgs/servers/web-apps/lemmy/ui.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/web-apps/lemmy/ui.nix b/pkgs/servers/web-apps/lemmy/ui.nix index b3b267d2f722..ab103921114b 100644 --- a/pkgs/servers/web-apps/lemmy/ui.nix +++ b/pkgs/servers/web-apps/lemmy/ui.nix @@ -2,13 +2,10 @@ , stdenvNoCC , libsass , nodejs -, python3 -, pkg-config , pnpm_9 , fetchFromGitHub , nixosTests , vips -, nodePackages }: let @@ -60,12 +57,20 @@ stdenvNoCC.mkDerivation (finalAttrs: { # runHook postInstall # ''; - preInstall = '' + preInstall = '' mkdir $out cp -R ./dist $out cp -R ./node_modules $out ''; + preFixup = '' + find $out -name libvips-cpp.so.42 -print0 | while read -d $'\0' libvips; do + echo replacing libvips at $libvips + rm $libvips + ln -s ${lib.getLib vips}/lib/libvips-cpp.so.42 $libvips + done + ''; + distPhase = "true";