at 18.03-beta 40 lines 1.0 kB view raw
1{ stdenv, fetchFromGitHub, cmake 2, qtbase }: 3 4# This doesn't actually do anything really yet as it doesn't support dynamic building 5# When it does, quaternion and tensor should use it 6 7stdenv.mkDerivation rec { 8 name = "libqmatrixclient-${version}"; 9 version = "0.2"; 10 11 src = fetchFromGitHub { 12 owner = "QMatrixClient"; 13 repo = "libqmatrixclient"; 14 rev = "v${version}-q0.0.5"; 15 sha256 = "1m53yxsqjxv2jq0h1xipwsgaj5rca4fk4cl3azgvmf19l9yn00ck"; 16 }; 17 18 buildInputs = [ qtbase ]; 19 20 nativeBuildInputs = [ cmake ]; 21 22 enableParallelBuilding = true; 23 24 installPhase = '' 25 runHook preInstall 26 27 install -Dm644 -t $out/lib *.a 28 29 runHook postInstall 30 ''; 31 32 meta = with stdenv.lib; { 33 description= "A Qt5 library to write cross-platfrom clients for Matrix"; 34 homepage = https://matrix.org/docs/projects/sdk/libqmatrixclient.html; 35 license = licenses.lgpl21; 36 platforms = platforms.linux; 37 maintainers = with maintainers; [ peterhoeg ]; 38 hydraPlatforms = [ ]; 39 }; 40}