diff options
author | Alexander Shpilkin <ashpilkin@gmail.com> | 2022-05-18 14:24:18 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2022-09-07 21:49:32 +0300 |
commit | e7b9363c99ad8f8fa0d9ae1e5adfc093340fd963 (patch) | |
tree | d04b089005082fcfbdb8218412609392fce3f482 | |
parent | 91bbd9567bf01dd3d9901d8ae3e43b88f48723e2 (diff) | |
download | nixpkgs-e7b9363c99ad8f8fa0d9ae1e5adfc093340fd963.tar nixpkgs-e7b9363c99ad8f8fa0d9ae1e5adfc093340fd963.tar.gz nixpkgs-e7b9363c99ad8f8fa0d9ae1e5adfc093340fd963.tar.bz2 nixpkgs-e7b9363c99ad8f8fa0d9ae1e5adfc093340fd963.tar.lz nixpkgs-e7b9363c99ad8f8fa0d9ae1e5adfc093340fd963.tar.xz nixpkgs-e7b9363c99ad8f8fa0d9ae1e5adfc093340fd963.tar.zst nixpkgs-e7b9363c99ad8f8fa0d9ae1e5adfc093340fd963.zip |
libtorrent-rasterbar: fix paths in pkg-config file
-rw-r--r-- | pkgs/development/libraries/libtorrent-rasterbar/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libtorrent-rasterbar/default.nix b/pkgs/development/libraries/libtorrent-rasterbar/default.nix index 412446f215f..09788cfef71 100644 --- a/pkgs/development/libraries/libtorrent-rasterbar/default.nix +++ b/pkgs/development/libraries/libtorrent-rasterbar/default.nix @@ -25,6 +25,18 @@ in stdenv.mkDerivation { buildInputs = [ boostPython openssl zlib python ncurses ] ++ lib.optionals stdenv.isDarwin [ SystemConfiguration ]; + # https://github.com/arvidn/libtorrent/issues/6865 + postPatch = '' + substituteInPlace cmake/Modules/GeneratePkgConfig.cmake \ + --replace @CMAKE_INSTALL_PREFIX@/'$<'1: '$<'1: + substituteInPlace cmake/Modules/GeneratePkgConfig/target-compile-settings.cmake.in \ + --replace 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@")' \ + 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@") + set(_INSTALL_FULL_LIBDIR "@CMAKE_INSTALL_FULL_LIBDIR@")' + substituteInPlace cmake/Modules/GeneratePkgConfig/pkg-config.cmake.in \ + --replace '$'{prefix}/@_INSTALL_LIBDIR@ @_INSTALL_FULL_LIBDIR@ + ''; + postInstall = '' moveToOutput "include" "$dev" moveToOutput "lib/${python.libPrefix}" "$python" |