Skip to content

Commit

Permalink
spdlog: fix path in pkg-config file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshpilkin committed May 18, 2022
1 parent d558bef commit 12205df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/libraries/spdlog/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ let
# spdlog <1.4 is header only, no need to split libraries and headers
++ lib.optional (lib.versionAtLeast version "1.4") "dev";

# https://github.com/gabime/spdlog/issues/2380
postPatch = lib.optionalString (lib.versionAtLeast version "1.4.1") ''
substituteInPlace cmake/spdlog.pc.in \
--replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
'';

postInstall = ''
mkdir -p $out/share/doc/spdlog
cp -rv ../example $out/share/doc/spdlog
Expand Down

0 comments on commit 12205df

Please sign in to comment.