3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/instant-messengers/quaternion/default.nix

54 lines
1.2 KiB
Nix
Raw Normal View History

2021-09-26 08:52:54 +01:00
{ mkDerivation
, stdenv
, lib
, fetchFromGitHub
, cmake
, qtquickcontrols
, qtquickcontrols2
, qtkeychain
, qtmultimedia
, qttools
, libquotient
, libsecret
}:
2017-11-26 15:32:18 +00:00
2020-04-02 23:31:37 +01:00
mkDerivation rec {
pname = "quaternion";
2021-10-26 06:14:20 +01:00
version = "0.0.95.1";
2017-04-16 09:52:51 +01:00
2020-04-02 23:31:37 +01:00
src = fetchFromGitHub {
owner = "QMatrixClient";
repo = "Quaternion";
rev = version;
2021-10-26 06:14:20 +01:00
sha256 = "sha256-6FLj/hVY13WO7sMgHCHV57eMJu39cwQHXQX7m0lmv4I=";
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 = [
qtmultimedia
qtquickcontrols2
qtkeychain
libquotient
libsecret
];
nativeBuildInputs = [ cmake qttools ];
2021-09-26 08:52:54 +01:00
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"
'';
2020-04-02 23:31:37 +01:00
meta = with lib; {
2021-10-26 06:14:20 +01:00
description = "Cross-platform desktop IM client for the Matrix protocol";
2020-04-02 23:31:37 +01:00
homepage = "https://matrix.org/docs/projects/client/quaternion.html";
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
2021-10-26 06:14:20 +01:00
inherit (qtquickcontrols2.meta) platforms;
2020-04-02 23:31:37 +01:00
};
2017-04-16 09:52:51 +01:00
}