summary refs log tree commit diff
path: root/pkgs/development/libraries/libqmatrixclient/default.nix
blob: f537013d2fecf58de56c1db9939f35ac280ab4c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ stdenv, fetchFromGitHub, cmake
, qtbase }:

# This doesn't actually do anything really yet as it doesn't support dynamic building
# When it does, quaternion and tensor should use it

stdenv.mkDerivation rec {
  name = "libqmatrixclient-${version}";
  version = "0.2";

  src = fetchFromGitHub {
    owner  = "QMatrixClient";
    repo   = "libqmatrixclient";
    rev    = "v${version}-q0.0.5";
    sha256 = "1m53yxsqjxv2jq0h1xipwsgaj5rca4fk4cl3azgvmf19l9yn00ck";
  };

  buildInputs = [ qtbase ];

  nativeBuildInputs = [ cmake ];

  enableParallelBuilding = true;

  installPhase = ''
    runHook preInstall

    install -Dm644 -t $out/lib *.a

    runHook postInstall
  '';

  meta = with stdenv.lib; {
    description= "A Qt5 library to write cross-platfrom clients for Matrix";
    homepage = https://matrix.org/docs/projects/sdk/libqmatrixclient.html;
    license = licenses.lgpl21;
    platforms = platforms.linux;
    maintainers = with maintainers; [ peterhoeg ];
    hydraPlatforms = [ ];
  };
}