at master 41 lines 925 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "libmodule"; 11 version = "5.0.1"; 12 13 src = fetchFromGitHub { 14 owner = "FedeDP"; 15 repo = "libmodule"; 16 rev = version; 17 sha256 = "sha256-wkRiDWO9wUyxkAeqvm99u22Jq4xnQJx6zS7Sb+R8iMg="; 18 }; 19 20 nativeBuildInputs = [ 21 cmake 22 pkg-config 23 ]; 24 25 # https://github.com/FedeDP/libmodule/issues/7 26 postPatch = '' 27 substituteInPlace Extra/libmodule.pc.in \ 28 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \ 29 --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@ 30 ''; 31 32 meta = with lib; { 33 description = "C simple and elegant implementation of an actor library"; 34 homepage = "https://github.com/FedeDP/libmodule"; 35 platforms = platforms.linux; 36 license = licenses.mit; 37 maintainers = with maintainers; [ 38 eadwu 39 ]; 40 }; 41}