2021-10-12 22:52:31 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libXScrnSaver
|
|
|
|
, olm
|
|
|
|
, pkg-config
|
|
|
|
, pyotherside
|
|
|
|
, python3Packages
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtgraphicaleffects
|
|
|
|
, qtkeychain
|
|
|
|
, qtmultimedia
|
|
|
|
, qtquickcontrols2
|
|
|
|
, wrapQtAppsHook
|
2020-06-21 01:51:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "mirage";
|
2021-10-12 22:52:31 +01:00
|
|
|
version = "0.7.2";
|
2020-06-21 01:51:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirukana";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-12 22:52:31 +01:00
|
|
|
sha256 = "sha256-dJS4lAXHHNUEAG75gQaS9+aQTTTj8KHqHjISioynFdY=";
|
2020-06-21 01:51:48 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-10-12 22:52:31 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
python3Packages.wrapPython
|
|
|
|
qmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
2020-06-21 01:51:48 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
2020-12-20 19:21:32 +00:00
|
|
|
libXScrnSaver
|
2021-10-12 22:52:31 +01:00
|
|
|
olm
|
|
|
|
pyotherside
|
|
|
|
qtbase
|
|
|
|
qtgraphicaleffects
|
|
|
|
qtkeychain
|
|
|
|
qtmultimedia
|
|
|
|
qtquickcontrols2
|
|
|
|
] ++ pythonPath;
|
2020-06-21 01:51:48 +01:00
|
|
|
|
2021-10-12 22:52:31 +01:00
|
|
|
pythonPath = with python3Packages; [
|
|
|
|
aiofiles
|
|
|
|
appdirs
|
|
|
|
blist
|
|
|
|
cairosvg
|
|
|
|
filetype
|
|
|
|
html-sanitizer
|
|
|
|
hsluv
|
|
|
|
matrix-nio
|
|
|
|
mistune
|
|
|
|
plyer
|
|
|
|
pymediainfo
|
|
|
|
pyotherside
|
|
|
|
redbaron
|
|
|
|
simpleaudio
|
|
|
|
setuptools
|
|
|
|
watchgod
|
|
|
|
];
|
2020-06-21 01:51:48 +01:00
|
|
|
|
2021-10-12 22:52:31 +01: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-10-12 22:52:31 +01:00
|
|
|
'';
|
2020-06-21 01:51:48 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-21 01:51:48 +01:00
|
|
|
homepage = "https://github.com/mirukana/mirage";
|
2021-10-12 22:52:31 +01:00
|
|
|
description = "A fancy, customizable, keyboard-operable Qt/QML+Python Matrix chat client for encrypted and decentralized communication";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ colemickens AndersonTorres ];
|
2020-06-21 01:51:48 +01:00
|
|
|
inherit (qtbase.meta) platforms;
|
2021-10-12 22:52:31 +01:00
|
|
|
broken = stdenv.isDarwin;
|
2020-06-21 01:51:48 +01:00
|
|
|
};
|
|
|
|
}
|