mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
mpvScripts.convert: Refactor with buildLua
This commit is contained in:
parent
22e859ae44
commit
c2f3e206fe
@ -1,7 +1,7 @@
|
|||||||
{ stdenvNoCC, fetchgit, lib
|
{ lib, fetchgit, buildLua
|
||||||
, yad, mkvtoolnix-cli, libnotify }:
|
, yad, mkvtoolnix-cli, libnotify }:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
buildLua {
|
||||||
pname = "mpv-convert-script";
|
pname = "mpv-convert-script";
|
||||||
version = "2016-03-18";
|
version = "2016-03-18";
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
@ -22,15 +22,9 @@ stdenvNoCC.mkDerivation {
|
|||||||
'yad_exe = "${yad}/bin/yad"' \
|
'yad_exe = "${yad}/bin/yad"' \
|
||||||
--replace 'notify_send_exe = "notify-send"' \
|
--replace 'notify_send_exe = "notify-send"' \
|
||||||
'notify_send_exe = "${libnotify}/bin/notify-send"' \
|
'notify_send_exe = "${libnotify}/bin/notify-send"' \
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontBuild = true;
|
scriptPath = "convert_script.lua";
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/share/mpv/scripts
|
|
||||||
cp convert_script.lua $out/share/mpv/scripts
|
|
||||||
'';
|
|
||||||
passthru.scriptName = "convert_script.lua";
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Convert parts of a video while you are watching it in mpv";
|
description = "Convert parts of a video while you are watching it in mpv";
|
||||||
|
@ -11,7 +11,7 @@ in lib.recurseIntoAttrs
|
|||||||
autodeint = callPackage ./autodeint.nix { };
|
autodeint = callPackage ./autodeint.nix { };
|
||||||
autoload = callPackage ./autoload.nix { };
|
autoload = callPackage ./autoload.nix { };
|
||||||
chapterskip = callPackage ./chapterskip.nix { inherit buildLua; };
|
chapterskip = callPackage ./chapterskip.nix { inherit buildLua; };
|
||||||
convert = callPackage ./convert.nix { };
|
convert = callPackage ./convert.nix { inherit buildLua; };
|
||||||
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
|
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
|
||||||
mpris = callPackage ./mpris.nix { };
|
mpris = callPackage ./mpris.nix { };
|
||||||
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };
|
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user