2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub
|
2021-01-17 02:09:27 +00:00
|
|
|
, qmake, pkg-config, olm, wrapQtAppsHook
|
2021-03-07 02:13:51 +00:00
|
|
|
, qtbase, qtquickcontrols2, qtkeychain, qtmultimedia, qtgraphicaleffects
|
2020-12-20 19:21:32 +00:00
|
|
|
, python3Packages, pyotherside, libXScrnSaver
|
2020-06-21 01:51:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pypkgs = with python3Packages; [
|
|
|
|
aiofiles filetype matrix-nio appdirs cairosvg
|
|
|
|
pymediainfo setuptools html-sanitizer mistune blist
|
|
|
|
pyotherside
|
|
|
|
];
|
|
|
|
in
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mirage";
|
2020-12-20 19:21:32 +00:00
|
|
|
version = "0.6.4";
|
2020-06-21 01:51:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirukana";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-12-20 19:21:32 +00:00
|
|
|
sha256 = "15x0x2rf4fzsd0zr84fq3j3ddzkgc5il8s54jpxk8wl4ah03g4nv";
|
2020-06-21 01:51:48 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config qmake wrapQtAppsHook python3Packages.wrapPython ];
|
2020-06-21 01:51:48 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase qtmultimedia
|
|
|
|
qtquickcontrols2
|
|
|
|
qtkeychain qtgraphicaleffects
|
|
|
|
olm pyotherside
|
2020-12-20 19:21:32 +00:00
|
|
|
libXScrnSaver
|
2020-06-21 01:51:48 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = pypkgs;
|
|
|
|
|
|
|
|
pythonPath = pypkgs;
|
|
|
|
|
2020-12-20 19:21:32 +00:00
|
|
|
qmakeFlags = [ "PREFIX=${placeholder "out"}" "CONFIG+=qtquickcompiler" ];
|
2020-06-21 01:51:48 +01:00
|
|
|
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
postInstall = ''
|
|
|
|
buildPythonPath "$out $pythonPath"
|
|
|
|
wrapProgram $out/bin/mirage \
|
|
|
|
--prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
"''${qtWrapperArgs[@]}"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "A fancy, customizable, keyboard-operable Qt/QML+Python Matrix chat client for encrypted and decentralized communication";
|
2020-06-21 01:51:48 +01:00
|
|
|
homepage = "https://github.com/mirukana/mirage";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ colemickens ];
|
2020-12-20 19:21:32 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-06-21 01:51:48 +01:00
|
|
|
inherit (qtbase.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|