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-07-12 16:50:04 +01:00
version = "2017-06-29";
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";
rev = "1febc0178fd3d02b7426f58981b54924ad60c84d";
sha256 = "1whjhlphdhk7kgw2zqc0wj3k2i9gkp79qq2bnrh4mbcp3qmcqngr";
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;
};
}