nixpkgs/pkgs/development/libraries/mysocketw/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
767 B
Nix
Raw Normal View History

2022-03-19 19:52:15 +00:00
{ lib
, stdenv
, fetchFromGitHub
, openssl
, cmake
}:
2021-06-22 13:21:29 +00:00
stdenv.mkDerivation rec {
pname = "mysocketw";
2022-03-19 00:34:44 +00:00
version = "3.11.0";
src = fetchFromGitHub {
owner = "RigsOfRods";
repo = "socketw";
rev = version;
2022-03-19 19:52:15 +00:00
hash = "sha256-mpfhmKE2l59BllkOjmURIfl17lAakXpmGh2x9SFSaAo=";
};
2022-03-19 19:52:15 +00:00
nativeBuildInputs = [
cmake
];
buildInputs = [
openssl
];
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/Makefile \
--replace -Wl,-soname, -Wl,-install_name,$out/lib/
'';
2022-03-19 19:52:15 +00:00
meta = with lib; {
description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
2022-03-19 19:52:15 +00:00
homepage = "https://github.com/RigsOfRods/socketw";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ ];
};
}