Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5885021135ec
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a9639b4cbf60
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Sep 11, 2020

  1. Copy the full SHA
    59e1c16 View commit details
  2. Copy the full SHA
    a9639b4 View commit details
Showing with 21 additions and 0 deletions.
  1. +20 −0 pkgs/applications/video/mpv/scripts/autoload.nix
  2. +1 −0 pkgs/top-level/all-packages.nix
20 changes: 20 additions & 0 deletions pkgs/applications/video/mpv/scripts/autoload.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -21963,6 +21963,7 @@ in
mpv = wrapMpv mpv-unwrapped {};

mpvScripts = recurseIntoAttrs {
autoload = callPackage ../applications/video/mpv/scripts/autoload.nix {};
convert = callPackage ../applications/video/mpv/scripts/convert.nix {};
mpris = callPackage ../applications/video/mpv/scripts/mpris.nix {};
simple-mpv-webui = callPackage ../applications/video/mpv/scripts/simple-mpv-webui.nix {};