summary refs log tree commit diff
path: root/pkgs/tools/bluetooth
diff options
context:
space:
mode:
authorAlexander Shpilkin <ashpilkin@gmail.com>2022-05-09 15:44:29 +0300
committerArtturin <Artturin@artturin.com>2022-09-07 21:44:36 +0300
commit5b12efa3f2480cbcc960755812e80ac177bfecf5 (patch)
treec4e8ec7164fa95090e5488a90cd5057004cecb25 /pkgs/tools/bluetooth
parent52938dde0d15a662d5ef180ae8c7260a91173fe3 (diff)
downloadnixpkgs-5b12efa3f2480cbcc960755812e80ac177bfecf5.tar
nixpkgs-5b12efa3f2480cbcc960755812e80ac177bfecf5.tar.gz
nixpkgs-5b12efa3f2480cbcc960755812e80ac177bfecf5.tar.bz2
nixpkgs-5b12efa3f2480cbcc960755812e80ac177bfecf5.tar.lz
nixpkgs-5b12efa3f2480cbcc960755812e80ac177bfecf5.tar.xz
nixpkgs-5b12efa3f2480cbcc960755812e80ac177bfecf5.tar.zst
nixpkgs-5b12efa3f2480cbcc960755812e80ac177bfecf5.zip
openobex: fix paths in pkg-config file
Diffstat (limited to 'pkgs/tools/bluetooth')
-rw-r--r--pkgs/tools/bluetooth/openobex/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/bluetooth/openobex/default.nix b/pkgs/tools/bluetooth/openobex/default.nix
index 831644bd4ac..5d18319ac60 100644
--- a/pkgs/tools/bluetooth/openobex/default.nix
+++ b/pkgs/tools/bluetooth/openobex/default.nix
@@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
   patchPhase = ''
     sed -i "s!/lib/udev!$out/lib/udev!" udev/CMakeLists.txt
     sed -i "/if ( PKGCONFIG_UDEV_FOUND )/,/endif ( PKGCONFIG_UDEV_FOUND )/d" udev/CMakeLists.txt
+    # https://sourceforge.net/p/openobex/bugs/66/
+    substituteInPlace CMakeLists.txt \
+      --replace '\$'{prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
+      --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
     '';
 
   meta = with lib; {