mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ stdenv, fetchgit
|
|
, pkgconfig, wrapQtAppsHook
|
|
, cmake
|
|
, qtbase, qttools, qtquickcontrols2, qtmultimedia, qtkeychain
|
|
, libpulseaudio
|
|
# Not mentioned but seems needed
|
|
, qtgraphicaleffects
|
|
, qtdeclarative
|
|
, qtmacextras
|
|
, olm, cmark
|
|
}:
|
|
|
|
let qtkeychain-qt5 = qtkeychain.override {
|
|
inherit qtbase qttools;
|
|
withQt5 = true;
|
|
};
|
|
in stdenv.mkDerivation {
|
|
pname = "spectral";
|
|
version = "unstable-2019-08-30";
|
|
|
|
src = fetchgit {
|
|
url = "https://gitlab.com/b0/spectral.git";
|
|
rev = "ee86c948aec5fe72979fc6df97f4a6ef711bdf94";
|
|
sha256 = "1mqabdkvzq48wki92wm2r79kj8g8m7ganpl47sh60qfsk4bxa8b2";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
#qmakeFlags = [ "CONFIG+=qtquickcompiler" "BUNDLE_FONT=true" ];
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake wrapQtAppsHook ];
|
|
buildInputs = [ qtbase qtkeychain-qt5 qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative olm cmark ]
|
|
++ stdenv.lib.optional stdenv.hostPlatform.isLinux libpulseaudio
|
|
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin qtmacextras;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A glossy cross-platform Matrix client.";
|
|
homepage = "https://gitlab.com/b0/spectral";
|
|
license = licenses.gpl3;
|
|
platforms = with platforms; linux ++ darwin;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|