summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-05 03:02:27 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2022-12-05 03:02:27 +0100
commit59cbf207dffcce7d4a55b54592e0ebd952eae1ae (patch)
tree6fb2e8be209adeaedefde2c28ab03537c2d50311
parentcee75d23a9825985cad20b0deaac752766f6725c (diff)
downloadnixpkgs-59cbf207dffcce7d4a55b54592e0ebd952eae1ae.tar
nixpkgs-59cbf207dffcce7d4a55b54592e0ebd952eae1ae.tar.gz
nixpkgs-59cbf207dffcce7d4a55b54592e0ebd952eae1ae.tar.bz2
nixpkgs-59cbf207dffcce7d4a55b54592e0ebd952eae1ae.tar.lz
nixpkgs-59cbf207dffcce7d4a55b54592e0ebd952eae1ae.tar.xz
nixpkgs-59cbf207dffcce7d4a55b54592e0ebd952eae1ae.tar.zst
nixpkgs-59cbf207dffcce7d4a55b54592e0ebd952eae1ae.zip
mysocketw: fix build on darwin
-rw-r--r--pkgs/development/libraries/mysocketw/default.nix6
1 files changed, 1 insertions, 5 deletions
diff --git a/pkgs/development/libraries/mysocketw/default.nix b/pkgs/development/libraries/mysocketw/default.nix
index 5ee10c854a5..880f5d50a04 100644
--- a/pkgs/development/libraries/mysocketw/default.nix
+++ b/pkgs/development/libraries/mysocketw/default.nix
@@ -49,15 +49,11 @@ stdenv.mkDerivation rec {
     printf %s 'https://AnotherFoxGuy.com/CMakeCM::modules/JoinPaths.cmake.1' > JoinPaths.cmake.whence
   )'';
 
-  postPatch = lib.optionalString stdenv.isDarwin ''
-    substituteInPlace src/Makefile \
-        --replace -Wl,-soname, -Wl,-install_name,$out/lib/
-  '';
-
   meta = with lib; {
     description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
     homepage = "https://github.com/RigsOfRods/socketw";
     license = licenses.lgpl21Plus;
     maintainers = with maintainers; [ ];
+    platforms = platforms.unix;
   };
 }