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
|
2020-01-01 07:35:57 +00:00
|
|
|
, olm, libsecret, 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;
|
|
|
|
};
|
2020-01-01 07:35:57 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2019-03-04 04:10:42 +00:00
|
|
|
pname = "spectral";
|
2020-01-01 07:35:57 +00:00
|
|
|
version = "817";
|
2018-09-25 20:24:24 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
2020-01-01 07:35:57 +00:00
|
|
|
url = "https://gitlab.com/spectral-im/spectral.git";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0lg0bkz621cmqb67kz1zmn4xwbspcqalz68byll5iszqz9y4gnp1";
|
2018-09-25 20:24:24 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2019-07-24 21:44:48 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake wrapQtAppsHook ];
|
2020-01-01 07:35:57 +00:00
|
|
|
buildInputs = [ qtbase qtkeychain-qt5 qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative olm libsecret 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.";
|
2020-01-01 07:35:57 +00:00
|
|
|
homepage = "https://spectral.im";
|
2018-09-25 20:24:24 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|