mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
1e3ac89095
* libsecret, now req'd * url updates
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ stdenv, fetchgit
|
|
, pkgconfig, wrapQtAppsHook
|
|
, cmake
|
|
, qtbase, qttools, qtquickcontrols2, qtmultimedia, qtkeychain
|
|
, libpulseaudio
|
|
# Not mentioned but seems needed
|
|
, qtgraphicaleffects
|
|
, qtdeclarative
|
|
, qtmacextras
|
|
, olm, libsecret, cmark
|
|
}:
|
|
|
|
let qtkeychain-qt5 = qtkeychain.override {
|
|
inherit qtbase qttools;
|
|
withQt5 = true;
|
|
};
|
|
in stdenv.mkDerivation rec {
|
|
pname = "spectral";
|
|
version = "817";
|
|
|
|
src = fetchgit {
|
|
url = "https://gitlab.com/spectral-im/spectral.git";
|
|
rev = version;
|
|
sha256 = "0lg0bkz621cmqb67kz1zmn4xwbspcqalz68byll5iszqz9y4gnp1";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig cmake wrapQtAppsHook ];
|
|
buildInputs = [ qtbase qtkeychain-qt5 qtquickcontrols2 qtmultimedia qtgraphicaleffects qtdeclarative olm libsecret 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://spectral.im";
|
|
license = licenses.gpl3;
|
|
platforms = with platforms; linux ++ darwin;
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|