depot/third_party/nixpkgs/pkgs/development/libraries/mysocketw/default.nix
Default email 73a29e0b97 Project import generated by Copybara.
GitOrigin-RevId: 5bb20f9dc70e9ee16e21cc404b6508654931ce41
2022-01-27 10:19:43 +10:00

27 lines
686 B
Nix

{ lib, stdenv, fetchFromGitHub, openssl, cmake }:
stdenv.mkDerivation rec {
pname = "mysocketw";
version = "3.10.27";
src = fetchFromGitHub {
owner = "RigsOfRods";
repo = "socketw";
rev = version;
sha256 = "0xqcgwb1lyc2d8834sq5adbmggyn6vvb26jw20862sxa15j0qfd4";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ openssl ];
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/Makefile \
--replace -Wl,-soname, -Wl,-install_name,$out/lib/
'';
meta = {
description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.all;
};
}