nixpkgs/pkgs/applications/networking/instant-messengers/quaternion/default.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

2017-05-17 21:26:11 +02:00
{ mkDerivation, lib, fetchgit, qtbase, qtquickcontrols, cmake }:
2017-04-16 10:52:51 +02:00
2017-05-17 21:26:11 +02:00
mkDerivation rec {
2017-04-16 10:52:51 +02:00
name = "quaternion-git-${version}";
2017-10-07 16:56:36 +02:00
version = "2017-10-07";
2017-04-16 10:52:51 +02:00
# quaternion and tensor share the same libqmatrixclient library as a git submodule
#
# As all 3 projects are in very early stages, we simply load the submodule.
#
# At some point in the future, we should separate out libqmatrixclient into its own
# derivation.
src = fetchgit {
2017-07-12 17:50:04 +02:00
url = "https://github.com/QMatrixClient/Quaternion.git";
2017-10-07 16:56:36 +02:00
rev = "1007f2ca4ad5e8cc5dba437d6a0cdea07d1f1332";
sha256 = "0hvc81ld7fcwyrxsr2q3yvzh0rzhgmflby4nmyzcbjds7b7pv0xq";
2017-04-16 10:52:51 +02:00
fetchSubmodules = true;
};
buildInputs = [ qtbase qtquickcontrols ];
2017-05-17 21:26:11 +02:00
nativeBuildInputs = [ cmake ];
2017-04-16 10:52:51 +02:00
cmakeFlags = [
"-Wno-dev"
];
postInstall = ''
substituteInPlace $out/share/applications/quaternion.desktop \
--replace 'Exec=quaternion' "Exec=$out/bin/quaternion"
'';
2017-05-17 21:26:11 +02:00
meta = with lib; {
2017-04-16 10:52:51 +02:00
description = "Cross-platform desktop IM client for the Matrix protocol";
2017-07-12 17:50:04 +02:00
homepage = https://matrix.org/docs/projects/client/quaternion.html;
license = licenses.gpl3;
2017-04-16 10:52:51 +02:00
maintainers = with maintainers; [ peterhoeg ];
inherit (qtbase.meta) platforms;
inherit version;
};
}