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

37 lines
1.1 KiB
Nix
Raw Normal View History

2018-10-28 01:31:04 +01:00
{ stdenv, lib, fetchFromGitHub, qtbase, qtquickcontrols, cmake
, qttools, libqmatrixclient }:
2017-11-26 15:32:18 +00:00
stdenv.mkDerivation rec {
name = "quaternion-${version}";
2018-10-28 01:31:04 +01:00
version = "0.0.9.3";
2017-11-26 15:32:18 +00:00
src = fetchFromGitHub {
owner = "QMatrixClient";
repo = "Quaternion";
rev = "v${version}";
2018-10-28 01:31:04 +01:00
sha256 = "1hr9zqf301rg583n9jv256vzj7y57d8qgayk7c723bfknf1s6hh3";
2017-04-16 09:52:51 +01:00
};
2018-10-28 01:31:04 +01:00
buildInputs = [ qtbase qtquickcontrols qttools libqmatrixclient ];
2017-11-26 15:32:18 +00:00
2017-05-17 20:26:11 +01:00
nativeBuildInputs = [ cmake ];
2017-04-16 09:52:51 +01:00
postInstall = if stdenv.isDarwin then ''
mkdir -p $out/Applications
mv $out/bin/quaternion.app $out/Applications
rmdir $out/bin || :
'' else ''
2017-04-16 09:52:51 +01:00
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;
};
}