Merge pull request #71669 from nh2/issue-70872-srt-wrong-cmake-pc-include-path

srt: Fix wrong `srt.pc` include path
This commit is contained in:
Niklas Hambüchen 2019-10-30 13:45:14 +01:00 committed by GitHub
commit e64c3abd21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
buildInputs = [ openssl ];
cmakeFlags = [
# 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"
# TODO Remove this when https://github.com/Haivision/srt/issues/538 is fixed and available to nixpkgs
# Workaround for the fact that srt incorrectly disables GNUInstallDirs when LIBDIR is specified,
# see https://github.com/NixOS/nixpkgs/pull/54463#discussion_r249878330