Skip to content

Commit

Permalink
libyaml-cpp: Fix wrong paths in pkg-config .pc file.
Browse files Browse the repository at this point in the history
Same as in #71669.
  • Loading branch information
nh2 committed Nov 2, 2021
1 parent 50029ed commit 7463722
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/libraries/libyaml-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ cmake ];

cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DYAML_CPP_BUILD_TESTS=OFF" ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DYAML_CPP_BUILD_TESTS=OFF"
# the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly
# (setting it to an absolute path causes include files to go to $out/$out/include,
# because the absolute path is interpreted with root at $out).
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_LIBDIR=lib"
];

meta = with lib; {
inherit (src.meta) homepage;
Expand Down

0 comments on commit 7463722

Please sign in to comment.