diff options
author | rnhmjoj <rnhmjoj@inventati.org> | 2024-04-03 09:51:02 +0200 |
---|---|---|
committer | rnhmjoj <rnhmjoj@inventati.org> | 2024-04-06 15:36:46 +0200 |
commit | bd9f1f215588bb69755a4a283a3a0f9d0ba9de70 (patch) | |
tree | 606d36d806738e19ad9695b0c11d81e4e0b01567 /pkgs/development/libraries/podofo | |
parent | d9bb2c0160b723f18c4c70110792d337a16be4a4 (diff) |
podofo: fix library path in pkg-config file
The lib/ directory was being moved to the $lib output post-build without correcting the path in libpodofo.pc.
Diffstat (limited to 'pkgs/development/libraries/podofo')
-rw-r--r-- | pkgs/development/libraries/podofo/0.10.x.nix | 4 | ||||
-rw-r--r-- | pkgs/development/libraries/podofo/default.nix | 9 |
2 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/development/libraries/podofo/0.10.x.nix b/pkgs/development/libraries/podofo/0.10.x.nix index 6c4356e9add9b..93c989a9c1ec6 100644 --- a/pkgs/development/libraries/podofo/0.10.x.nix +++ b/pkgs/development/libraries/podofo/0.10.x.nix @@ -53,10 +53,6 @@ stdenv.mkDerivation (finalAttrs: { "-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON" ]; - postInstall = '' - moveToOutput lib "$lib" - ''; - meta = { homepage = "https://github.com/podofo/podofo"; description = "A library to work with the PDF file format"; diff --git a/pkgs/development/libraries/podofo/default.nix b/pkgs/development/libraries/podofo/default.nix index 1243763421c08..85651d225f424 100644 --- a/pkgs/development/libraries/podofo/default.nix +++ b/pkgs/development/libraries/podofo/default.nix @@ -24,8 +24,13 @@ stdenv.mkDerivation rec { "-DCMAKE_BUILD_WITH_INSTALL_NAME_DIR=ON" ]; - postInstall = '' - moveToOutput lib "$lib" + postPatch = '' + # Use GNU directories to fix multiple outputs + failNoMatches='t yes; b no; :yes h; :no p; $ {x; /./{x;q}; q1}' + sed -ni src/podofo/CMakeLists.txt \ + -e 's/LIBDIRNAME/CMAKE_INSTALL_LIBDIR/' -e "$failNoMatches" + sed -ni src/podofo/libpodofo.pc.in \ + -e 's/^libdir=.*/libdir=@CMAKE_INSTALL_LIBDIR@/' -e "$failNoMatches" ''; meta = with lib; { |