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

44 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}";
version = "2017-04-15";
# 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 {
url = "https://github.com/Fxrh/Quaternion.git";
rev = "c35475a6755cdb75e2a6c8ca5b943685d07d9707";
sha256 = "0cm5j4vdnp5cljfnv5jqf89ccymspaqc6j9bb4c1x891vr42np0m";
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"
rm $out/share/icons/hicolor/icon-theme.cache
2017-04-16 10:52:51 +02:00
'';
2017-05-17 21:26:11 +02:00
meta = with lib; {
2017-04-16 10:52:51 +02:00
homepage = https://matrix.org/docs/projects/client/quaternion.html;
description = "Cross-platform desktop IM client for the Matrix protocol";
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
inherit (qtbase.meta) platforms;
inherit version;
};
}