Merge pull request #271665 from bobby285271/upd/hypnotix

hypnotix: 3.7 -> 4.0

authored by Bobby Rong and committed by GitHub 90e47447 2db830ab

+13 -6
+13 -6
pkgs/applications/video/hypnotix/default.nix
··· 9 , mpv 10 , python3 11 , wrapGAppsHook 12 }: 13 14 stdenv.mkDerivation rec { 15 pname = "hypnotix"; 16 - version = "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "linuxmint"; 20 repo = "hypnotix"; 21 rev = version; 22 - hash = "sha256-H8+KJ9+HLAorGIeljw8H3N8W3E2yYhAno1xy+jI54zM="; 23 }; 24 25 patches = [ ··· 32 postPatch = '' 33 substituteInPlace usr/lib/hypnotix/hypnotix.py \ 34 --replace __DEB_VERSION__ ${version} \ 35 --replace /usr/share/circle-flags-svg ${circle-flags}/share/circle-flags-svg \ 36 --replace /usr/share/hypnotix $out/share/hypnotix 37 ''; 38 39 nativeBuildInputs = [ ··· 47 48 buildInputs = [ 49 cinnamon.xapp 50 ]; 51 52 pythonPath = with python3.pkgs; [ ··· 62 runHook preInstall 63 64 mkdir -p $out 65 - cp -r usr/lib $out 66 - cp -r usr/share $out 67 68 glib-compile-schemas $out/share/glib-2.0/schemas 69 ··· 72 73 preFixup = '' 74 buildPythonPath "$out $pythonPath" 75 - makeWrapper ${python3.interpreter} $out/bin/hypnotix \ 76 - --add-flags $out/lib/hypnotix/hypnotix.py \ 77 --prefix PYTHONPATH : "$program_PYTHONPATH" \ 78 ''${gappsWrapperArgs[@]} 79 '';
··· 9 , mpv 10 , python3 11 , wrapGAppsHook 12 + , yt-dlp 13 }: 14 15 stdenv.mkDerivation rec { 16 pname = "hypnotix"; 17 + version = "4.0"; 18 19 src = fetchFromGitHub { 20 owner = "linuxmint"; 21 repo = "hypnotix"; 22 rev = version; 23 + hash = "sha256-0iJzlj5FRDXJdh+vWVvZaBJVNru7CfkvJtZUZYKoqPw="; 24 }; 25 26 patches = [ ··· 33 postPatch = '' 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 39 + 40 + substituteInPlace usr/bin/hypnotix \ 41 + --replace /usr/lib/hypnotix/hypnotix.py $out/lib/hypnotix/hypnotix.py 42 ''; 43 44 nativeBuildInputs = [ ··· 52 53 buildInputs = [ 54 cinnamon.xapp 55 + python3 # for patchShebangs 56 ]; 57 58 pythonPath = with python3.pkgs; [ ··· 68 runHook preInstall 69 70 mkdir -p $out 71 + cp -r usr/* $out 72 73 glib-compile-schemas $out/share/glib-2.0/schemas 74 ··· 77 78 preFixup = '' 79 buildPythonPath "$out $pythonPath" 80 + 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[@]} 86 '';