Merge pull request #264609 from fpletz/pkgs/libdatachannel-0.19.2-includepath

libdatachannel: 0.19.2 -> 0.19.3, fix include path
This commit is contained in:
Weijia Wang
2023-11-07 01:32:39 +01:00
committed by GitHub
@@ -14,13 +14,13 @@
stdenv.mkDerivation rec {
pname = "libdatachannel";
version = "0.19.2";
version = "0.19.3";
src = fetchFromGitHub {
owner = "paullouisageneau";
repo = pname;
rev = "v${version}";
hash = "sha256-x7/jgoaFVfx5j+CP8S/uIwkzjGskEqsY2Jxsd/Mj4VM=";
hash = "sha256-Cx+AfoeLOcqlrEVNuvMPJaY6K7ufu07p9XdjNwtPYf0=";
};
outputs = [ "out" "dev" ];
@@ -46,9 +46,9 @@ stdenv.mkDerivation rec {
];
postFixup = ''
# Fix shared library path that will be incorrect on move to "dev" output
substituteInPlace "$dev/lib/cmake/LibDataChannel/LibDataChannelTargets-release.cmake" \
--replace "\''${_IMPORT_PREFIX}/lib" "$out/lib"
# Fix include path that will be incorrect due to the "dev" output
substituteInPlace "$dev/lib/cmake/LibDataChannel/LibDataChannelTargets.cmake" \
--replace "\''${_IMPORT_PREFIX}/include" "$dev/include"
'';
meta = with lib; {