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

39 lines
1.1 KiB
Nix
Raw Normal View History

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
2019-08-13 22:52:01 +01:00
generic = version: sha256: prefix: stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "libqmatrixclient";
inherit 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-05-29 03:07:43 +01:00
postPatch = ''
sed -i -e '/example/Id' CMakeLists.txt
'';
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";
2019-05-29 03:07:43 +01:00
libqmatrixclient_0_5 = generic "0.5.2" "1bhlqfs7251fss4icx794ka614npr6zyrpp4qwc4q5408ykfm7lr" "";
2019-04-10 08:06:47 +01:00
libqmatrixclient = libqmatrixclient_0_4;
2017-11-26 15:31:44 +00:00
}