about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/quaternion
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-04-16 16:52:51 +0800
committerPeter Hoeg <peter@hoeg.com>2017-04-16 16:52:59 +0800
commit4ecafcf5b2db712782bb59f1710351c91d03c3df (patch)
treee52473485503248cafb6927ef401a05871516067 /pkgs/applications/networking/instant-messengers/quaternion
parent9ee21439123db2fdd6be977761507131a91bc892 (diff)
quaternion: init at 2017-04-15
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/quaternion')
-rw-r--r--pkgs/applications/networking/instant-messengers/quaternion/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/networking/instant-messengers/quaternion/default.nix b/pkgs/applications/networking/instant-messengers/quaternion/default.nix
new file mode 100644
index 0000000000000..689d47244cb89
--- /dev/null
+++ b/pkgs/applications/networking/instant-messengers/quaternion/default.nix
@@ -0,0 +1,45 @@
+{ stdenv, fetchgit, qtbase, qtquickcontrols, cmake, makeQtWrapper }:
+
+stdenv.mkDerivation rec {
+  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;
+  };
+
+  enableParallelBuilding = true;
+
+  buildInputs = [ qtbase qtquickcontrols ];
+  nativeBuildInputs = [ cmake makeQtWrapper ];
+
+  cmakeFlags = [
+    "-Wno-dev"
+  ];
+
+  postInstall = ''
+    wrapQtProgram $out/bin/quaternion
+
+    substituteInPlace $out/share/applications/quaternion.desktop \
+      --replace 'Exec=quaternion' "Exec=$out/bin/quaternion"
+  '';
+
+  meta = with stdenv.lib; {
+    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;
+  };
+}