Commit efde7f61 authored by marius david's avatar marius david
Browse files

lemmy-ui: properly replace the vips dependancy

parent 8f73423c
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -2,13 +2,10 @@
, stdenvNoCC
, libsass
, nodejs
, python3
, pkg-config
, pnpm_9
, fetchFromGitHub
, nixosTests
, vips
, nodePackages
}:

let
@@ -66,6 +63,14 @@ stdenvNoCC.mkDerivation (finalAttrs: {
    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";