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