git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #71669 from nh2/issue-70872-srt-wrong-cmake-pc-include-path

srt: Fix wrong `srt.pc` include path

commite64c3abd2173c9dd4aa4fc000b80724bcd84a7ec authorNiklas Hambüchen <mail@nh2.me> dateWed 30 Oct 2019, 13:45 (7 years ago) parent3bc7621f7b53c0
1 file changed+4
pkgs/development/libraries/srt/default.nix+4
pkgs/development/libraries/srt/default.nix+4
@@ -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