Skip to content

Commit

Permalink
ladybird: remove workaround for missing libwebp CMake targets
Browse files Browse the repository at this point in the history
  • Loading branch information
smancill committed Aug 26, 2024
1 parent 909c491 commit d7fda42
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions pkgs/applications/networking/browsers/ladybird/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,6 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace Meta/CMake/lagom_install_options.cmake \
--replace-fail "\''${CMAKE_INSTALL_BINDIR}" "bin" \
--replace-fail "\''${CMAKE_INSTALL_LIBDIR}" "lib"
# libwebp is not built with cmake support yet
# https://github.com/NixOS/nixpkgs/issues/334148
cat > Meta/CMake/FindWebP.cmake <<'EOF'
find_package(PkgConfig)
pkg_check_modules(WEBP libwebp REQUIRED)
include_directories(''${WEBP_INCLUDE_DIRS})
link_directories(''${WEBP_LIBRARY_DIRS})
EOF
substituteInPlace Userland/Libraries/LibGfx/CMakeLists.txt \
--replace-fail 'WebP::' "" \
--replace-fail libwebpmux webpmux
'';

preConfigure = ''
Expand Down

0 comments on commit d7fda42

Please sign in to comment.