mirror of
https://github.com/kmein/niveum
synced 2026-03-22 04:41:07 +01:00
feat(flix): add simpsons script
This commit is contained in:
@@ -48,6 +48,16 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
|
(pkgs.writeDashBin "mpv-simpsons" ''
|
||||||
|
set -efu
|
||||||
|
cd "${flixLocation}/download"
|
||||||
|
[ -f "${cacheLocation}/${indexFilename}" ] || exit 1
|
||||||
|
|
||||||
|
cat "${cacheLocation}/${indexFilename}" \
|
||||||
|
| ${pkgs.gnugrep}/bin/grep -i 'simpsons.*mkv' \
|
||||||
|
| shuf \
|
||||||
|
| ${pkgs.findutils}/bin/xargs -d '\n' ${pkgs.mpv}/bin/mpv
|
||||||
|
'')
|
||||||
(pkgs.writeDashBin "flixmenu" ''
|
(pkgs.writeDashBin "flixmenu" ''
|
||||||
set -efu
|
set -efu
|
||||||
cd "${flixLocation}/download"
|
cd "${flixLocation}/download"
|
||||||
|
|||||||
Reference in New Issue
Block a user