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

42 lines
1.3 KiB
Nix
Raw Normal View History

2017-05-17 20:26:11 +01:00
{ mkDerivation, lib, fetchgit, qtbase, qtquickcontrols, cmake }:
2017-04-16 09:52:51 +01:00
2017-05-17 20:26:11 +01:00
mkDerivation rec {
2017-04-16 09:52:51 +01:00
name = "quaternion-git-${version}";
2017-10-07 15:56:36 +01:00
version = "2017-10-07";
2017-04-16 09:52:51 +01: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 16:50:04 +01:00
url = "https://github.com/QMatrixClient/Quaternion.git";
2017-10-07 15:56:36 +01:00
rev = "1007f2ca4ad5e8cc5dba437d6a0cdea07d1f1332";
sha256 = "0hvc81ld7fcwyrxsr2q3yvzh0rzhgmflby4nmyzcbjds7b7pv0xq";
2017-04-16 09:52:51 +01:00
fetchSubmodules = true;
};
buildInputs = [ qtbase qtquickcontrols ];
2017-05-17 20:26:11 +01:00
nativeBuildInputs = [ cmake ];
2017-04-16 09:52:51 +01:00
cmakeFlags = [
"-Wno-dev"
];
postInstall = ''
substituteInPlace $out/share/applications/quaternion.desktop \
--replace 'Exec=quaternion' "Exec=$out/bin/quaternion"
'';
2017-05-17 20:26:11 +01:00
meta = with lib; {
2017-04-16 09:52:51 +01:00
description = "Cross-platform desktop IM client for the Matrix protocol";
2017-07-12 16:50:04 +01:00
homepage = https://matrix.org/docs/projects/client/quaternion.html;
license = licenses.gpl3;
2017-04-16 09:52:51 +01:00
maintainers = with maintainers; [ peterhoeg ];
inherit (qtbase.meta) platforms;
inherit version;
};
}