depot/third_party/nixpkgs/pkgs/development/libraries/libmodule/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

36 lines
915 B
Nix

{ lib, stdenv, fetchFromGitHub
, cmake, pkg-config }:
stdenv.mkDerivation rec {
pname = "libmodule";
version = "5.0.1";
src = fetchFromGitHub {
owner = "FedeDP";
repo = "libmodule";
rev = version;
sha256 = "sha256-wkRiDWO9wUyxkAeqvm99u22Jq4xnQJx6zS7Sb+R8iMg=";
};
nativeBuildInputs = [
cmake
pkg-config
];
# 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@
'';
meta = with lib; {
description = "C simple and elegant implementation of an actor library";
homepage = "https://github.com/FedeDP/libmodule";
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [
eadwu
];
};
}