storj-uplink: 1.119.15 -> 1.120.4 (#375732)
[NixPkgs.git] / pkgs / by-name / li / libmodule / package.nix
blobdbb2505e5c18418f4bb9204b3fef27ab0abce954
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   pkg-config,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "libmodule";
11   version = "5.0.1";
13   src = fetchFromGitHub {
14     owner = "FedeDP";
15     repo = "libmodule";
16     rev = version;
17     sha256 = "sha256-wkRiDWO9wUyxkAeqvm99u22Jq4xnQJx6zS7Sb+R8iMg=";
18   };
20   nativeBuildInputs = [
21     cmake
22     pkg-config
23   ];
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   '';
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   };