@@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
1818 buildInputs = [ openssl ];
1919
2020 cmakeFlags = [
21+ # the cmake package does not handle absolute CMAKE_INSTALL_INCLUDEDIR correctly
22+ # (setting it to an absolute path causes include files to go to $out/$out/include,
23+ # because the absolute path is interpreted with root at $out).
24+ "-DCMAKE_INSTALL_INCLUDEDIR=include"
2125 # TODO Remove this when https://github.com/Haivision/srt/issues/538 is fixed and available to nixpkgs
2226 # Workaround for the fact that srt incorrectly disables GNUInstallDirs when LIBDIR is specified,
2327 # see https://github.com/NixOS/nixpkgs/pull/54463#discussion_r249878330