mpvScripts.pitchcontrol: init at 0.2.0

This commit is contained in:
Simon Bruder 2021-05-15 14:05:10 +02:00
parent c58908483f
commit ed965e408a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 42 additions and 2 deletions

View file

@ -28,6 +28,10 @@
deemix = callPythonPackage ./deemix { }; deemix = callPythonPackage ./deemix { };
mpvScripts = prev.mpvScripts // {
pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { };
};
textidote = callPackage ./textidote { }; textidote = callPackage ./textidote { };
unxwb = callPackage ./unxwb { }; unxwb = callPackage ./unxwb { };
@ -55,14 +59,19 @@
packages = lib.filterAttrs packages = lib.filterAttrs
(n: v: lib.elem system v.meta.platforms) (n: v: lib.elem system v.meta.platforms)
{ (flake-utils.lib.flattenTree {
inherit (pkgs) inherit (pkgs)
cyanrip cyanrip
deemix deemix
textidote textidote
unxwb unxwb
VisiCut; VisiCut;
};
mpvScripts = lib.recurseIntoAttrs {
inherit (pkgs.mpvScripts)
pitchcontrol;
};
});
# My hydra only has x86_64-linux builders # My hydra only has x86_64-linux builders
hydraJobs = hydraJobs =

View file

@ -0,0 +1,31 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "pitchcontrol";
version = "0.2.0";
src = fetchFromGitHub {
owner = "FichteFoll";
repo = "mpv-scripts";
rev = "784dbafcd26455dde22175a5668c621defc14cab";
sha256 = "057vslm6ybf0b0a5s39m049pcvb204hqf6jx1640ya2r6sm335g8";
};
dontBuild = true;
installPhase = ''
runHook preInstall
install -D ${passthru.scriptName} $out/share/mpv/scripts/${passthru.scriptName}
runHook postInstall
'';
passthru.scriptName = "${pname}.lua";
meta = with lib; {
description = "An mpv script to change the pitch of audio with keybindings";
homepage = "https://github.com/FichteFoll/mpv-scripts";
license = licenses.isc;
platforms = platforms.all;
maintainers = with maintainers; [ sbruder ];
};
}