1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(flix): add simpsons script

This commit is contained in:
2021-02-06 14:02:09 +01:00
parent a592947bbf
commit 40472e2ff8

View File

@@ -48,6 +48,16 @@ in {
};
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" ''
set -efu
cd "${flixLocation}/download"