nixpkgs/pkgs/development/libraries/libqmatrixclient/default.nix
2019-04-18 15:37:31 +08:00

33 lines
1005 B
Nix

{ stdenv, fetchFromGitHub, cmake
, qtbase, qtmultimedia }:
let
generic = version: sha256: prefix: stdenv.mkDerivation rec {
name = "libqmatrixclient-${version}";
src = fetchFromGitHub {
owner = "QMatrixClient";
repo = "libqmatrixclient";
rev = "${prefix}${version}";
inherit sha256;
};
buildInputs = [ qtbase qtmultimedia ];
nativeBuildInputs = [ cmake ];
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 ];
};
};
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;
}