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