2022-05-23 06:27:25 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, substituteAll
|
|
|
|
, cinnamon
|
|
|
|
, gettext
|
|
|
|
, gobject-introspection
|
|
|
|
, mpv
|
|
|
|
, python3
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hypnotix";
|
2023-01-07 14:06:28 +00:00
|
|
|
version = "3.2";
|
2022-05-23 06:27:25 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "hypnotix";
|
|
|
|
rev = version;
|
2023-01-07 14:06:28 +00:00
|
|
|
hash = "sha256-R9bp1RQHHCrIE/3rIAHzWHXpXBUDUpJTkO53n+xZw3Q=";
|
2022-05-23 06:27:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./libmpv-path.patch;
|
|
|
|
libmpv = "${lib.getLib mpv}/lib/libmpv${stdenv.hostPlatform.extensions.sharedLibrary}";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace usr/lib/hypnotix/hypnotix.py \
|
|
|
|
--replace __DEB_VERSION__ ${version} \
|
|
|
|
--replace /usr/share/hypnotix $out/share/hypnotix
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
python3.pkgs.wrapPython
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-07-27 04:05:17 +00:00
|
|
|
cinnamon.xapp
|
2022-05-23 06:27:25 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonPath = with python3.pkgs; [
|
2022-08-08 20:02:01 +00:00
|
|
|
cinemagoer
|
2022-05-23 06:27:25 +00:00
|
|
|
pygobject3
|
|
|
|
requests
|
|
|
|
setproctitle
|
|
|
|
unidecode
|
|
|
|
xapp
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r usr/lib $out
|
|
|
|
cp -r usr/share $out
|
|
|
|
|
|
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
buildPythonPath "$out $pythonPath"
|
|
|
|
makeWrapper ${python3.interpreter} $out/bin/hypnotix \
|
|
|
|
--add-flags $out/lib/hypnotix/hypnotix.py \
|
|
|
|
--prefix PYTHONPATH : "$program_PYTHONPATH" \
|
|
|
|
''${gappsWrapperArgs[@]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "IPTV streaming application";
|
|
|
|
homepage = "https://github.com/linuxmint/hypnotix";
|
2022-06-15 19:13:35 +00:00
|
|
|
changelog = "https://github.com/linuxmint/hypnotix/blob/${src.rev}/debian/changelog";
|
2022-05-23 06:27:25 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2022-11-01 09:24:40 +00:00
|
|
|
maintainers = with lib.maintainers; [ dotlambda bobby285271 ];
|
2022-05-23 06:27:25 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|