diff options
author | Alexander Shpilkin <ashpilkin@gmail.com> | 2022-05-18 23:58:14 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2022-09-07 21:49:33 +0300 |
commit | 347b676aeb5fd563d51e646a2d145144099124fe (patch) | |
tree | 6afc0a53cc9fbfe7a1f5682e0690a600b44e6865 /pkgs/development/libraries/tinyobjloader | |
parent | 960e3c40c64f36dca6742363c92caff9f21f3c5a (diff) |
tinyobjloader: fix paths in pkg-config file
Diffstat (limited to 'pkgs/development/libraries/tinyobjloader')
-rw-r--r-- | pkgs/development/libraries/tinyobjloader/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/tinyobjloader/default.nix b/pkgs/development/libraries/tinyobjloader/default.nix index 113e5f5ae95a9..d07a841c3c021 100644 --- a/pkgs/development/libraries/tinyobjloader/default.nix +++ b/pkgs/development/libraries/tinyobjloader/default.nix @@ -16,6 +16,13 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; + # https://github.com/tinyobjloader/tinyobjloader/issues/336 + postPatch = '' + substituteInPlace tinyobjloader.pc.in \ + --replace '$'{prefix}/@TINYOBJLOADER_LIBRARY_DIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \ + --replace '$'{prefix}/@TINYOBJLOADER_INCLUDE_DIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@ + ''; + meta = with lib; { homepage = "https://github.com/tinyobjloader/tinyobjloader"; description = "Tiny but powerful single file wavefront obj loader"; |