Unverified Commit f90d34b4 authored by Sandro Jäckel's avatar Sandro Jäckel
Browse files

libtorrent-rasterbar-2_0_x: use --replace-fail

parent 409a0cae
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -50,11 +50,11 @@ stdenv.mkDerivation {
  # https://github.com/arvidn/libtorrent/issues/6865
  postPatch = ''
    substituteInPlace cmake/Modules/GeneratePkgConfig/target-compile-settings.cmake.in \
      --replace 'set(_INSTALL_LIBDIR "@CMAKE_INSTALL_LIBDIR@")' \
      --replace-fail '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@
      --replace-fail '$'{prefix}/@_INSTALL_LIBDIR@ @_INSTALL_FULL_LIBDIR@
  '';

  postInstall = ''
@@ -64,7 +64,7 @@ stdenv.mkDerivation {

  postFixup = ''
    substituteInPlace "$dev/lib/cmake/LibtorrentRasterbar/LibtorrentRasterbarTargets-release.cmake" \
      --replace "\''${_IMPORT_PREFIX}/lib" "$out/lib"
      --replace-fail "\''${_IMPORT_PREFIX}/lib" "$out/lib"
  '';

  outputs = [