2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-01-19 07:50:56 +01:00
|
|
|
, cmake, pkg-config }:
|
2019-07-04 18:34:00 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libmodule";
|
2021-01-20 03:54:39 +01:00
|
|
|
version = "5.0.1";
|
2019-07-04 18:34:00 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FedeDP";
|
|
|
|
repo = "libmodule";
|
|
|
|
rev = version;
|
2021-01-20 03:54:39 +01:00
|
|
|
sha256 = "sha256-wkRiDWO9wUyxkAeqvm99u22Jq4xnQJx6zS7Sb+R8iMg=";
|
2019-07-04 18:34:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-01-19 07:50:56 +01:00
|
|
|
pkg-config
|
2019-07-04 18:34:00 +02:00
|
|
|
];
|
|
|
|
|
2022-05-17 14:27:07 +02:00
|
|
|
# https://github.com/FedeDP/libmodule/issues/7
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Extra/libmodule.pc.in \
|
|
|
|
--replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
|
|
|
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2019-07-04 18:34:00 +02:00
|
|
|
description = "C simple and elegant implementation of an actor library";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/FedeDP/libmodule";
|
2019-07-04 18:34:00 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
eadwu
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|