diff options
author | apfelkuchen06 <apfelkuchen@hrnz.li> | 2023-05-12 15:15:09 +0200 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-05-16 08:28:39 -0300 |
commit | f594db6447b0e17fd5a4adec81ada8cf2dc77f45 (patch) | |
tree | 46d55562fe63c5923b6ebcc0d55ad44eee8e8b8c | |
parent | 9c2d997a707a1462ea432bf8625e483de0faeba6 (diff) | |
download | nixpkgs-f594db6447b0e17fd5a4adec81ada8cf2dc77f45.tar nixpkgs-f594db6447b0e17fd5a4adec81ada8cf2dc77f45.tar.gz nixpkgs-f594db6447b0e17fd5a4adec81ada8cf2dc77f45.tar.bz2 nixpkgs-f594db6447b0e17fd5a4adec81ada8cf2dc77f45.tar.lz nixpkgs-f594db6447b0e17fd5a4adec81ada8cf2dc77f45.tar.xz nixpkgs-f594db6447b0e17fd5a4adec81ada8cf2dc77f45.tar.zst nixpkgs-f594db6447b0e17fd5a4adec81ada8cf2dc77f45.zip |
mpvScripts.thumbfast: init at unstable-2023-05-12
-rw-r--r-- | pkgs/applications/video/mpv/scripts/thumbfast.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 1 |
2 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/scripts/thumbfast.nix b/pkgs/applications/video/mpv/scripts/thumbfast.nix new file mode 100644 index 00000000000..7614cc171e8 --- /dev/null +++ b/pkgs/applications/video/mpv/scripts/thumbfast.nix @@ -0,0 +1,38 @@ +{ lib, stdenvNoCC, fetchFromGitHub, mpv-unwrapped }: + +stdenvNoCC.mkDerivation { + name = "mpv-thumbfast"; + version = "unstable-2023-05-12"; + + src = fetchFromGitHub { + owner = "po5"; + repo = "thumbfast"; + rev = "10e9f6133d4ea88e3e5d154969abfaee17173570"; + hash = "sha256-3fzkAR/itgheXQHTr30XPQR3NpYpIVeZfkcBxEoAnGg="; + }; + + postPatch = '' + substituteInPlace thumbfast.lua \ + --replace 'mpv_path = "mpv"' 'mpv_path = "${lib.getBin mpv-unwrapped}/bin/mpv"' + ''; + + dontBuild = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/mpv/scripts + cp -r thumbfast.lua $out/share/mpv/scripts/thumbfast.lua + + runHook postInstall + ''; + + passthru.scriptName = "thumbfast.lua"; + + meta = { + description = "High-performance on-the-fly thumbnailer for mpv"; + homepage = "https://github.com/po5/thumbfast"; + license = lib.licenses.unfree; # no explicit licensing information available at this time + maintainers = with lib.maintainers; [ apfelkuchen6 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c90fd481796..91a46491e45 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32567,6 +32567,7 @@ with pkgs; mpvacious = callPackage ../applications/video/mpv/scripts/mpvacious.nix { }; simple-mpv-webui = callPackage ../applications/video/mpv/scripts/simple-mpv-webui.nix { }; sponsorblock = callPackage ../applications/video/mpv/scripts/sponsorblock.nix { }; + thumbfast = callPackage ../applications/video/mpv/scripts/thumbfast.nix { }; thumbnail = callPackage ../applications/video/mpv/scripts/thumbnail.nix { }; uosc = callPackage ../applications/video/mpv/scripts/uosc.nix { }; vr-reversal = callPackage ../applications/video/mpv/scripts/vr-reversal.nix { }; |