summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorAlexander Shpilkin <ashpilkin@gmail.com>2022-05-09 09:48:25 +0300
committerArtturin <Artturin@artturin.com>2022-09-07 21:44:36 +0300
commit7baca962de986c6635ab74a3e8cfcff8df7b875e (patch)
tree67739080db55df39ae54b91911f712e5157c8eb0 /pkgs/development/libraries
parent10249211987c6f4231a3d02abb35b89e61f985de (diff)
downloadnixpkgs-7baca962de986c6635ab74a3e8cfcff8df7b875e.tar
nixpkgs-7baca962de986c6635ab74a3e8cfcff8df7b875e.tar.gz
nixpkgs-7baca962de986c6635ab74a3e8cfcff8df7b875e.tar.bz2
nixpkgs-7baca962de986c6635ab74a3e8cfcff8df7b875e.tar.lz
nixpkgs-7baca962de986c6635ab74a3e8cfcff8df7b875e.tar.xz
nixpkgs-7baca962de986c6635ab74a3e8cfcff8df7b875e.tar.zst
nixpkgs-7baca962de986c6635ab74a3e8cfcff8df7b875e.zip
usrsctp: fix paths in pkg-config file
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/usrsctp/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/usrsctp/default.nix b/pkgs/development/libraries/usrsctp/default.nix
index 64b1debc0ce..af8979c79d1 100644
--- a/pkgs/development/libraries/usrsctp/default.nix
+++ b/pkgs/development/libraries/usrsctp/default.nix
@@ -13,6 +13,13 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake ];
 
+  # https://github.com/sctplab/usrsctp/issues/662
+  postPatch = ''
+    substituteInPlace usrsctplib/CMakeLists.txt \
+      --replace '$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
+      --replace '$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
+  '';
+
   meta = with lib; {
     homepage = "https://github.com/sctplab/usrsctp";
     description = "A portable SCTP userland stack";