mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 07:14:52 +00:00
mpv: move wrapper under mpv-unwrapped.passthru
And refactor to fit. wrapper
This commit is contained in:
parent
bb5d71826c
commit
cc419c0148
@ -1,5 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPackages
|
, buildPackages
|
||||||
|
, callPackage
|
||||||
, config
|
, config
|
||||||
, stdenv
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
@ -256,6 +257,8 @@ in stdenv'.mkDerivation (finalAttrs: {
|
|||||||
vapoursynthSupport
|
vapoursynthSupport
|
||||||
vapoursynth
|
vapoursynth
|
||||||
;
|
;
|
||||||
|
|
||||||
|
wrapper = callPackage ./wrapper.nix { };
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -7,21 +7,23 @@
|
|||||||
, symlinkJoin
|
, symlinkJoin
|
||||||
, writeTextDir
|
, writeTextDir
|
||||||
, yt-dlp
|
, yt-dlp
|
||||||
|
# the unwrapped mpv derivation
|
||||||
|
, mpv
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# the unwrapped mpv derivation - 1st argument to `wrapMpv`
|
|
||||||
mpv:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
# arguments to the function (exposed as `wrapMpv` in all-packages.nix)
|
# arguments to the function (exposed as `mpv-unwrapped.wrapper` in top-level)
|
||||||
wrapper = {
|
wrapper = {
|
||||||
|
mpv,
|
||||||
extraMakeWrapperArgs ? [],
|
extraMakeWrapperArgs ? [],
|
||||||
youtubeSupport ? true,
|
youtubeSupport ? true,
|
||||||
# a set of derivations (probably from `mpvScripts`) where each is
|
# a set of derivations (probably from `mpvScripts`) where each is expected
|
||||||
# expected to have a `scriptName` passthru attribute that points to the
|
# to have a `scriptName` passthru attribute that points to the name of the
|
||||||
# name of the script that would reside in the script's derivation's
|
# script that would reside in the script's derivation's
|
||||||
# `$out/share/mpv/scripts/`.
|
# `$out/share/mpv/scripts/`.
|
||||||
# A script can optionally also provide an `extraWrapperArgs` passthru attribute.
|
#
|
||||||
|
# A script can optionally also provide `passthru.extraWrapperArgs`
|
||||||
|
# attribute.
|
||||||
scripts ? [],
|
scripts ? [],
|
||||||
extraUmpvWrapperArgs ? []
|
extraUmpvWrapperArgs ? []
|
||||||
}:
|
}:
|
||||||
|
@ -32942,11 +32942,10 @@ with pkgs;
|
|||||||
inherit lua;
|
inherit lua;
|
||||||
};
|
};
|
||||||
|
|
||||||
shaka-packager = callPackage ../applications/video/shaka-packager { };
|
# Wrap avoiding rebuild
|
||||||
|
mpv = mpv-unwrapped.wrapper { mpv = mpv-unwrapped; };
|
||||||
|
|
||||||
# Wraps without triggering a rebuild
|
shaka-packager = callPackage ../applications/video/shaka-packager { };
|
||||||
wrapMpv = callPackage ../applications/video/mpv/wrapper.nix { };
|
|
||||||
mpv = wrapMpv mpv-unwrapped { };
|
|
||||||
|
|
||||||
mpvpaper = callPackage ../tools/wayland/mpvpaper { };
|
mpvpaper = callPackage ../tools/wayland/mpvpaper { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user