2018-09-25 21:24:24 +02:00
|
|
|
{ stdenv, fetchgit
|
2019-07-24 22:44:48 +02:00
|
|
|
, pkgconfig, wrapQtAppsHook
|
|
|
|
, cmake
|
|
|
|
, qtbase, qttools, qtquickcontrols2, qtmultimedia, qtkeychain
|
2018-09-25 21:24:24 +02:00
|
|
|
, libpulseaudio
|
|
|
|
# Not mentioned but seems needed
|
|
|
|
, qtgraphicaleffects
|
2019-03-04 05:10:42 +01:00
|
|
|
, qtdeclarative
|
2019-04-25 05:02:55 +02:00
|
|
|
, qtmacextras
|
2019-07-24 22:44:48 +02:00
|
|
|
, olm, cmark
|
2018-09-25 21:24:24 +02:00
|
|
|
}:
|
|
|
|
|
2019-07-24 22:44:48 +02:00
|
|
|
let qtkeychain-qt5 = qtkeychain.override {
|
|
|
|
inherit qtbase qttools;
|
|
|
|
withQt5 = true;
|
|
|
|
};
|
2019-08-13 23:52:01 +02:00
|
|
|
in stdenv.mkDerivation {
|
2019-03-04 05:10:42 +01:00
|
|
|
pname = "spectral";
|
2019-07-24 22:44:48 +02:00
|
|
|
version = "unstable-2019-08-30";
|
2018-09-25 21:24:24 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.com/b0/spectral.git";
|
2019-07-24 22:44:48 +02:00
|
|
|
rev = "ee86c948aec5fe72979fc6df97f4a6ef711bdf94";
|
|
|
|
sha256 = "1mqabdkvzq48wki92wm2r79kj8g8m7ganpl47sh60qfsk4bxa8b2";
|
2018-09-25 21:24:24 +02:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2019-07-24 22:44:48 +02:00
|
|
|
#qmakeFlags = [ "CONFIG+=qtquickcompiler" "BUNDLE_FONT=true" ];
|
2019-03-04 05:10:42 +01:00
|
|
|
|
2019-07-24 22:44:48 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake wrapQtAppsHook ];
|
|
|
|
buildInputs = [ qtbase qtkeychain-qt5 qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative olm cmark ]
|
2019-04-25 05:02:55 +02:00
|
|
|
++ stdenv.lib.optional stdenv.hostPlatform.isLinux libpulseaudio
|
|
|
|
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin qtmacextras;
|
2018-09-25 21:24:24 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-07-24 22:44:48 +02:00
|
|
|
description = "A glossy cross-platform Matrix client.";
|
|
|
|
homepage = "https://gitlab.com/b0/spectral";
|
2018-09-25 21:24:24 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|