nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

mysocketw: fix darwin build

/cc ZHF #36454

(cherry picked from commit 18474c1842d80a5049fbec63befd6bb44ef076b2)

+7 -4
+7 -4
pkgs/development/libraries/mysocketw/default.nix
··· 1 - {stdenv, fetchurl, openssl}: 1 + { stdenv, fetchurl, openssl }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "mysocketw-031026"; ··· 9 9 10 10 patches = [ ./gcc.patch ]; 11 11 12 - configurePhase = '' 13 - sed -i s,/usr/local,$out, Makefile.conf 12 + buildInputs = [ openssl ]; 13 + 14 + postPatch = stdenv.lib.optionalString stdenv.isDarwin '' 15 + substituteInPlace src/Makefile \ 16 + --replace -Wl,-soname, -Wl,-install_name,$out/lib/ 14 17 ''; 15 18 16 - buildInputs = [ openssl ]; 19 + makeFlags = [ "PREFIX=$(out)" "CXX=c++" ]; 17 20 18 21 meta = { 19 22 description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";