diff options
author | Maciej Krüger <mkg20001@gmail.com> | 2023-12-12 18:15:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 18:15:43 +0100 |
commit | 76a8b682db36d83579edb97839406d670982bba1 (patch) | |
tree | e5d4f74fd293962f7ed35757c0498ecc45a1034d /pkgs/applications/video | |
parent | 8bdc624b2a85070de385eb8c6aa07be68c8d9e99 (diff) | |
parent | 89e75ee87a5bdf4f25669f2fdc697f56d5410b9b (diff) | |
download | nixlib-76a8b682db36d83579edb97839406d670982bba1.tar nixlib-76a8b682db36d83579edb97839406d670982bba1.tar.gz nixlib-76a8b682db36d83579edb97839406d670982bba1.tar.bz2 nixlib-76a8b682db36d83579edb97839406d670982bba1.tar.lz nixlib-76a8b682db36d83579edb97839406d670982bba1.tar.xz nixlib-76a8b682db36d83579edb97839406d670982bba1.tar.zst nixlib-76a8b682db36d83579edb97839406d670982bba1.zip |
Merge pull request #273176 from nbraud/mpvScripts/cutter
mpvScripts.cutter: unstable-2021-02-03 → 2023-11-09
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/cutter.nix | 25 | ||||
-rw-r--r-- | pkgs/applications/video/mpv/scripts/default.nix | 2 |
2 files changed, 11 insertions, 16 deletions
diff --git a/pkgs/applications/video/mpv/scripts/cutter.nix b/pkgs/applications/video/mpv/scripts/cutter.nix index 498fcb530a41..4c385b766c78 100644 --- a/pkgs/applications/video/mpv/scripts/cutter.nix +++ b/pkgs/applications/video/mpv/scripts/cutter.nix @@ -1,19 +1,16 @@ -{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper }: +{ lib, buildLua, fetchFromGitHub, makeWrapper }: -stdenvNoCC.mkDerivation { +buildLua { pname = "video-cutter"; - version = "unstable-2021-02-03"; + version = "unstable-2023-11-09"; src = fetchFromGitHub { owner = "rushmj"; repo = "mpv-video-cutter"; - rev = "718d6ce9356e63fdd47208ec44f575a212b9068a"; - sha256 = "sha256-ramID1DPl0UqEzevpqdYKb9aaW3CAy3Dy9CPb/oJ4eY="; + rev = "01a0396c075d5f8bbd1de5b571e6231f8899ab65"; + sha256 = "sha256-veoRFzUCRH8TrvR7x+WWoycpDyxqrJZ/bnp61dVc0pE="; }; - dontBuild = true; - dontCheck = true; - nativeBuildInputs = [ makeWrapper ]; postPatch = '' @@ -27,21 +24,19 @@ stdenvNoCC.mkDerivation { --replace '~/.config/mpv/scripts' "''${XDG_CONFIG_HOME:-~/.config}/mpv/cutter" ''; - installPhase = '' - install -Dm755 c_concat.sh $out/share/mpv/scripts/c_concat.sh - install cutter.lua $out/share/mpv/scripts/cutter.lua + passthru.scriptName = "cutter.lua"; + extraScripts = [ "c_concat.sh" ]; + postInstall = '' + chmod 0755 $out/share/mpv/scripts/c_concat.sh wrapProgram $out/share/mpv/scripts/c_concat.sh \ --run "mkdir -p ~/.config/mpv/cutter/" ''; - passthru.scriptName = "cutter.lua"; - meta = with lib; { description = "Cut videos and concat them automatically"; homepage = "https://github.com/rushmj/mpv-video-cutter"; - # repo doesn't have a license - license = licenses.unfree; + license = licenses.mit; maintainers = with maintainers; [ lom ]; }; } diff --git a/pkgs/applications/video/mpv/scripts/default.nix b/pkgs/applications/video/mpv/scripts/default.nix index 4ca70c401fa8..e134e1ddb402 100644 --- a/pkgs/applications/video/mpv/scripts/default.nix +++ b/pkgs/applications/video/mpv/scripts/default.nix @@ -12,6 +12,7 @@ in lib.recurseIntoAttrs autoload = callPackage ./autoload.nix { }; chapterskip = callPackage ./chapterskip.nix { inherit buildLua; }; convert = callPackage ./convert.nix { inherit buildLua; }; + cutter = callPackage ./cutter.nix { inherit buildLua; }; inhibit-gnome = callPackage ./inhibit-gnome.nix { }; mpris = callPackage ./mpris.nix { }; mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { inherit buildLua; }; @@ -27,7 +28,6 @@ in lib.recurseIntoAttrs visualizer = callPackage ./visualizer.nix { }; vr-reversal = callPackage ./vr-reversal.nix { }; webtorrent-mpv-hook = callPackage ./webtorrent-mpv-hook.nix { }; - cutter = callPackage ./cutter.nix { }; } // (callPackage ./occivink.nix { inherit buildLua; })) // lib.optionalAttrs config.allowAliases { |