srt: Fix wrong srt.pc include path. Fixes #70872.

Fix copied from:

    1230fc8674/pkgs/development/compilers/hhvm/default.nix (L41-L44)

Signed-off-by: Niklas Hambüchen <mail@nh2.me>
This commit is contained in:
Niklas Hambüchen 2019-10-22 14:50:24 +02:00
parent 1230fc8674
commit f7b53c0f6a

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