From cedd2ce2be48503407a96720f07a0a861d4378ab Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Tue, 24 Oct 2023 13:19:00 +0300 Subject: libtorrent-rasterbar: fix the path to the library in the CMake module --- pkgs/development/libraries/libtorrent-rasterbar/default.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkgs/development/libraries/libtorrent-rasterbar') diff --git a/pkgs/development/libraries/libtorrent-rasterbar/default.nix b/pkgs/development/libraries/libtorrent-rasterbar/default.nix index 4ec70464e1a..83c84fac602 100644 --- a/pkgs/development/libraries/libtorrent-rasterbar/default.nix +++ b/pkgs/development/libraries/libtorrent-rasterbar/default.nix @@ -42,6 +42,11 @@ in stdenv.mkDerivation { moveToOutput "lib/${python.libPrefix}" "$python" ''; + postFixup = '' + substituteInPlace "$dev/lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarTargets-release.cmake" \ + --replace "\''${_IMPORT_PREFIX}/lib" "$out/lib" + ''; + outputs = [ "out" "dev" "python" ]; cmakeFlags = [ -- cgit 1.4.1