2017-11-26 15:31:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
2019-04-10 08:06:47 +01:00
|
|
|
, qtbase, qtmultimedia }:
|
2017-11-26 15:31:44 +00:00
|
|
|
|
2019-04-10 08:06:47 +01:00
|
|
|
let
|
|
|
|
generic = version: sha256: prefix: stdenv.mkDerivation rec {
|
|
|
|
name = "libqmatrixclient-${version}";
|
2017-11-26 15:31:44 +00:00
|
|
|
|
2019-04-10 08:06:47 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "QMatrixClient";
|
|
|
|
repo = "libqmatrixclient";
|
|
|
|
rev = "${prefix}${version}";
|
|
|
|
inherit sha256;
|
|
|
|
};
|
2017-11-26 15:31:44 +00:00
|
|
|
|
2019-04-10 08:06:47 +01:00
|
|
|
buildInputs = [ qtbase qtmultimedia ];
|
2017-11-26 15:31:44 +00:00
|
|
|
|
2019-04-10 08:06:47 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2017-11-26 15:31:44 +00:00
|
|
|
|
2019-04-10 08:06:47 +01:00
|
|
|
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 = with platforms; linux ++ darwin;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
2017-11-26 15:31:44 +00:00
|
|
|
};
|
2019-04-10 08:06:47 +01:00
|
|
|
|
|
|
|
in rec {
|
|
|
|
libqmatrixclient_0_4 = generic "0.4.2.1" "056hvp2m74wx72yd8vai18siddj9l8bhrvrkc4ia4cwjsqw02kid" "v";
|
|
|
|
libqmatrixclient_0_5 = generic "0.5.1.2" "0vvpm1vlqfvhgfvavifrj4998g8v33hp5xjf0n8zfsmg4lxlnfg1" "";
|
|
|
|
libqmatrixclient = libqmatrixclient_0_4;
|
2017-11-26 15:31:44 +00:00
|
|
|
}
|