Skip to content
Permalink
Browse files

quaternion: 0.0.9.2 -> 0.0.9.3

  • Loading branch information
peterhoeg committed Nov 7, 2018
1 parent 179b814 commit 4a15e230fb835c10768a2564ae265ab99e962471
Showing with 9 additions and 19 deletions.
  1. +9 −19 pkgs/applications/networking/instant-messengers/quaternion/default.nix
@@ -1,34 +1,24 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, qtbase, qtquickcontrols, cmake, libqmatrixclient }:
{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake
, libqmatrixclient
, qtbase, qtquickcontrols, qttools }:

stdenv.mkDerivation rec {
name = "quaternion-${version}";
version = "0.0.9.2";
version = "0.0.9.3";

src = fetchFromGitHub {
owner = "QMatrixClient";
repo = "Quaternion";
rev = "v${version}";
sha256 = "0zrr4khbbdf5ziq65gi0cb1yb1d0y5rv18wld22w1x96f7fkmrib";
sha256 = "1hr9zqf301rg583n9jv256vzj7y57d8qgayk7c723bfknf1s6hh3";
};

buildInputs = [ qtbase qtquickcontrols ];

nativeBuildInputs = [ cmake ];

patches = [
# https://github.com/QMatrixClient/Quaternion/pull/400
(fetchpatch {
url = "https://github.com/QMatrixClient/Quaternion/commit/6cb29834efc343dc2bcf1db62cfad2dc4c121c54.patch";
sha256 = "0n7mgzzrvx9sa657rfb99i0mjh1k0sn5br344mknqy3wgqdr7s3x";
})
buildInputs = [
qtbase qtquickcontrols qttools
libqmatrixclient
];

# libqmatrixclient is now compiled as a dynamic library but quarternion cannot use it yet
# https://github.com/QMatrixClient/Quaternion/issues/239
postPatch = ''
rm -rf lib
ln -s ${libqmatrixclient.src} lib
'';
nativeBuildInputs = [ cmake ];

postInstall = if stdenv.isDarwin then ''
mkdir -p $out/Applications

0 comments on commit 4a15e23

Please sign in to comment.
You can’t perform that action at this time.