8 , gobject-introspection
15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
23 hash = "sha256-wDzHCrZTbfIb9dpRoh5qYKQNjONOv34FYdOr4svOLEw=";
28 src = ./libmpv-path.patch;
29 libmpv = "${lib.getLib mpv}/lib/libmpv${stdenv.hostPlatform.extensions.sharedLibrary}";
34 substituteInPlace usr/lib/hypnotix/hypnotix.py \
35 --replace __DEB_VERSION__ ${version} \
36 --replace /usr/bin/yt-dlp ${yt-dlp}/bin/yt-dlp \
37 --replace /usr/share/circle-flags-svg ${circle-flags}/share/circle-flags-svg \
38 --replace /usr/share/hypnotix $out/share/hypnotix
40 substituteInPlace usr/bin/hypnotix \
41 --replace /usr/lib/hypnotix/hypnotix.py $out/lib/hypnotix/hypnotix.py
47 python3.pkgs.wrapPython
55 python3 # for patchShebangs
58 pythonPath = with python3.pkgs; [
73 glib-compile-schemas $out/share/glib-2.0/schemas
79 buildPythonPath "$out $pythonPath"
81 # yt-dlp is needed for mpv to play YouTube channels.
82 wrapProgram $out/bin/hypnotix \
83 --prefix PATH : "${lib.makeBinPath [ yt-dlp ]}" \
84 --prefix PYTHONPATH : "$program_PYTHONPATH" \
85 ''${gappsWrapperArgs[@]}
89 description = "IPTV streaming application";
90 homepage = "https://github.com/linuxmint/hypnotix";
91 changelog = "https://github.com/linuxmint/hypnotix/blob/${src.rev}/debian/changelog";
92 license = lib.licenses.gpl3Plus;
93 maintainers = with lib.maintainers; [ dotlambda bobby285271 ];
94 platforms = lib.platforms.linux;
95 mainProgram = "hypnotix";