2019-08-20 00:50:35 -07:00
|
|
|
{ mkDerivation, stdenv, lib, fetchFromGitHub, cmake
|
2020-04-02 15:31:37 -07:00
|
|
|
, qtbase, qtquickcontrols, qtquickcontrols2, qtkeychain, qtmultimedia, qttools
|
|
|
|
, libquotient, libsecret
|
2020-01-07 12:17:12 -08:00
|
|
|
}:
|
2017-11-26 07:32:18 -08:00
|
|
|
|
2020-04-02 15:31:37 -07:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "quaternion";
|
|
|
|
version = "0.0.9.4e";
|
2017-04-16 01:52:51 -07:00
|
|
|
|
2020-04-02 15:31:37 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "QMatrixClient";
|
|
|
|
repo = "Quaternion";
|
2020-11-01 14:39:49 -08:00
|
|
|
rev = version;
|
2020-06-01 01:59:41 -07:00
|
|
|
sha256 = "0hqhg7l6wpkdbzrdjvrbqymmahziri07ba0hvbii7dd2p0h248fv";
|
2017-04-16 01:52:51 -07:00
|
|
|
};
|
2019-04-10 00:07:01 -07:00
|
|
|
|
2020-04-02 15:31:37 -07:00
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
qtquickcontrols
|
|
|
|
qtquickcontrols2
|
|
|
|
qtkeychain
|
|
|
|
libquotient
|
|
|
|
libsecret
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake qttools ];
|
|
|
|
|
|
|
|
postInstall = if stdenv.isDarwin then ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv $out/bin/quaternion.app $out/Applications
|
|
|
|
rmdir $out/bin || :
|
|
|
|
'' else ''
|
|
|
|
substituteInPlace $out/share/applications/com.github.quaternion.desktop \
|
|
|
|
--replace 'Exec=quaternion' "Exec=$out/bin/quaternion"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
|
|
|
"Cross-platform desktop IM client for the Matrix protocol";
|
|
|
|
homepage = "https://matrix.org/docs/projects/client/quaternion.html";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
inherit (qtbase.meta) platforms;
|
|
|
|
inherit version;
|
|
|
|
};
|
2017-04-16 01:52:51 -07:00
|
|
|
}
|