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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
1.7 KiB
Nix
Raw Normal View History

2021-10-12 21:52:31 +00:00
{ lib
, stdenv
, mkDerivation
, fetchFromGitHub
, libXScrnSaver
, olm
, pkg-config
, pyotherside
, python3Packages
, qmake
, qtbase
, qtgraphicaleffects
, qtkeychain
, qtmultimedia
, qtquickcontrols2
, wrapQtAppsHook
2020-06-21 00:51:48 +00:00
}:
mkDerivation rec {
pname = "mirage";
2021-10-12 21:52:31 +00:00
version = "0.7.2";
2020-06-21 00:51:48 +00:00
src = fetchFromGitHub {
owner = "mirukana";
repo = pname;
rev = "v${version}";
2021-10-12 21:52:31 +00:00
sha256 = "sha256-dJS4lAXHHNUEAG75gQaS9+aQTTTj8KHqHjISioynFdY=";
2020-06-21 00:51:48 +00:00
fetchSubmodules = true;
};
2021-10-12 21:52:31 +00:00
nativeBuildInputs = [
pkg-config
python3Packages.wrapPython
qmake
wrapQtAppsHook
];
2020-06-21 00:51:48 +00:00
buildInputs = [
libXScrnSaver
2021-10-12 21:52:31 +00:00
olm
pyotherside
qtbase
qtgraphicaleffects
qtkeychain
qtmultimedia
qtquickcontrols2
] ++ pythonPath;
2020-06-21 00:51:48 +00:00
2021-10-12 21:52:31 +00:00
pythonPath = with python3Packages; [
2022-01-18 22:31:37 +00:00
pillow
2021-10-12 21:52:31 +00:00
aiofiles
appdirs
cairosvg
filetype
html-sanitizer
2022-01-18 22:31:37 +00:00
lxml
2021-10-12 21:52:31 +00:00
mistune
pymediainfo
2022-01-18 22:31:37 +00:00
plyer
sortedcontainers
watchgod
2021-10-12 21:52:31 +00:00
redbaron
2022-01-18 22:31:37 +00:00
hsluv
2021-10-12 21:52:31 +00:00
simpleaudio
setuptools
watchgod
2022-01-18 22:31:37 +00:00
dbus-python
matrix-nio
2021-10-12 21:52:31 +00:00
];
2020-06-21 00:51:48 +00:00
2021-10-12 21:52:31 +00:00
qmakeFlags = [
"PREFIX=${placeholder "out"}"
"CONFIG+=qtquickcompiler"
];
2020-06-21 00:51:48 +00:00
dontWrapQtApps = true;
postInstall = ''
buildPythonPath "$out $pythonPath"
wrapProgram $out/bin/mirage \
--prefix PYTHONPATH : "$PYTHONPATH" \
"''${qtWrapperArgs[@]}"
2021-10-12 21:52:31 +00:00
'';
2020-06-21 00:51:48 +00:00
meta = with lib; {
2020-06-21 00:51:48 +00:00
homepage = "https://github.com/mirukana/mirage";
2021-10-12 21:52:31 +00: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 00:51:48 +00:00
inherit (qtbase.meta) platforms;
2022-01-18 22:31:37 +00:00
broken = stdenv.isDarwin || python3Packages.isPy37 || python3Packages.isPy38;
2020-06-21 00:51:48 +00:00
};
}