tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mpvScripts.convert: Refactor with `buildLua`
nicoo
2 years ago
c2f3e206
22e859ae
+4
-10
2 changed files
expand all
collapse all
unified
split
pkgs
applications
video
mpv
scripts
convert.nix
default.nix
+3
-9
pkgs/applications/video/mpv/scripts/convert.nix
···
1
-
{ stdenvNoCC, fetchgit, lib
2
, yad, mkvtoolnix-cli, libnotify }:
3
4
-
stdenvNoCC.mkDerivation {
5
pname = "mpv-convert-script";
6
version = "2016-03-18";
7
src = fetchgit {
···
22
'yad_exe = "${yad}/bin/yad"' \
23
--replace 'notify_send_exe = "notify-send"' \
24
'notify_send_exe = "${libnotify}/bin/notify-send"' \
25
-
26
'';
27
28
-
dontBuild = true;
29
-
installPhase = ''
30
-
mkdir -p $out/share/mpv/scripts
31
-
cp convert_script.lua $out/share/mpv/scripts
32
-
'';
33
-
passthru.scriptName = "convert_script.lua";
34
35
meta = with lib; {
36
description = "Convert parts of a video while you are watching it in mpv";
···
1
+
{ lib, fetchgit, buildLua
2
, yad, mkvtoolnix-cli, libnotify }:
3
4
+
buildLua {
5
pname = "mpv-convert-script";
6
version = "2016-03-18";
7
src = fetchgit {
···
22
'yad_exe = "${yad}/bin/yad"' \
23
--replace 'notify_send_exe = "notify-send"' \
24
'notify_send_exe = "${libnotify}/bin/notify-send"' \
0
25
'';
26
27
+
scriptPath = "convert_script.lua";
0
0
0
0
0
28
29
meta = with lib; {
30
description = "Convert parts of a video while you are watching it in mpv";
+1
-1
pkgs/applications/video/mpv/scripts/default.nix
···
11
autodeint = callPackage ./autodeint.nix { };
12
autoload = callPackage ./autoload.nix { };
13
chapterskip = callPackage ./chapterskip.nix { inherit buildLua; };
14
-
convert = callPackage ./convert.nix { };
15
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
16
mpris = callPackage ./mpris.nix { };
17
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };
···
11
autodeint = callPackage ./autodeint.nix { };
12
autoload = callPackage ./autoload.nix { };
13
chapterskip = callPackage ./chapterskip.nix { inherit buildLua; };
14
+
convert = callPackage ./convert.nix { inherit buildLua; };
15
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
16
mpris = callPackage ./mpris.nix { };
17
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };