2019-08-20 08:50:35 +01:00
|
|
|
{ mkDerivation, stdenv, lib, fetchFromGitHub, cmake
|
2020-04-02 23:31:37 +01:00
|
|
|
, qtbase, qtquickcontrols, qtquickcontrols2, qtkeychain, qtmultimedia, qttools
|
|
|
|
, libquotient, libsecret
|
2020-01-07 20:17:12 +00:00
|
|
|
}:
|
2017-11-26 15:32:18 +00:00
|
|
|
|
2020-04-02 23:31:37 +01:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "quaternion";
|
|
|
|
version = "0.0.9.4e";
|
2017-04-16 09:52:51 +01:00
|
|
|
|
2020-04-02 23:31:37 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "QMatrixClient";
|
|
|
|
repo = "Quaternion";
|
|
|
|
rev = "${version}";
|
2020-06-01 09:59:41 +01:00
|
|
|
sha256 = "0hqhg7l6wpkdbzrdjvrbqymmahziri07ba0hvbii7dd2p0h248fv";
|
2017-04-16 09:52:51 +01:00
|
|
|
};
|
2019-04-10 08:07:01 +01:00
|
|
|
|
2020-04-02 23:31:37 +01: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 09:52:51 +01:00
|
|
|
}
|