mysocketw: update meta

This commit is contained in:
Fabian Affolter 2022-03-19 20:52:15 +01:00 committed by GitHub
parent c0db1312bc
commit 13f95830f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,9 @@
{ lib, stdenv, fetchFromGitHub, openssl, cmake }:
{ lib
, stdenv
, fetchFromGitHub
, openssl
, cmake
}:
stdenv.mkDerivation rec {
pname = "mysocketw";
@ -8,20 +13,26 @@ stdenv.mkDerivation rec {
owner = "RigsOfRods";
repo = "socketw";
rev = version;
sha256 = "sha256-mpfhmKE2l59BllkOjmURIfl17lAakXpmGh2x9SFSaAo=";
hash = "sha256-mpfhmKE2l59BllkOjmURIfl17lAakXpmGh2x9SFSaAo=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ openssl ];
nativeBuildInputs = [
cmake
];
buildInputs = [
openssl
];
postPatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace src/Makefile \
--replace -Wl,-soname, -Wl,-install_name,$out/lib/
'';
meta = {
meta = with lib; {
description = "Cross platform (Linux/FreeBSD/Unix/Win32) streaming socket C++";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.all;
homepage = "https://github.com/RigsOfRods/socketw";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ ];
};
}