diff options
author | Doron Behar <doron.behar@gmail.com> | 2020-09-11 15:37:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 15:37:23 +0300 |
commit | a9639b4cbf6011faa65705dad2c68dd7dd00fe1a (patch) | |
tree | 198b1e88e9a0a306883615ec8074f022ae5111aa /pkgs/applications/video/mpv | |
parent | 5885021135ec04e9db30492bfceba6fa4da23329 (diff) | |
parent | 59e1c160302c940cfbace34e71b373586221b6de (diff) |
Merge pull request #87981 from dawidsowa/master
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/autoload.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/autoload.nix b/pkgs/applications/video/mpv/scripts/autoload.nix new file mode 100644 index 0000000000000..f64e702f21cf5 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/autoload.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, mpv-unwrapped, lib }: + +stdenv.mkDerivation rec { + pname = "mpv-autoload"; + version = mpv-unwrapped.version; + src = "${mpv-unwrapped.src.outPath}/TOOLS/lua/autoload.lua"; + dontBuild = true; + dontUnpack = true; + installPhase = '' + install -Dm644 ${src} $out/share/mpv/scripts/autoload.lua + ''; + passthru.scriptName = "autoload.lua"; + + meta = { + description = "This script automatically loads playlist entries before and after the the currently played file"; + homepage = "https://github.com/mpv-player/mpv/blob/master/TOOLS/lua/autoload.lua"; + maintainers = [ lib.maintainers.dawidsowa ]; + license = lib.licenses.gpl2Plus; + }; +} |