nixpkgs/pkgs/development/libraries/libmodule/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
915 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, 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
pkg-config
2019-07-04 18:34:00 +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@
'';
meta = with lib; {
2019-07-04 18:34:00 +02:00
description = "C simple and elegant implementation of an actor library";
homepage = "https://github.com/FedeDP/libmodule";
2019-07-04 18:34:00 +02:00
platforms = platforms.linux;
license = licenses.mit;
maintainers = with maintainers; [
eadwu
];
};
}