Move mpvScripts.pitchcontrol into external overlay

This commit is contained in:
Simon Bruder 2021-05-15 14:10:02 +02:00
parent 2c8a291ae9
commit 1562a38fd1
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
3 changed files with 4 additions and 39 deletions

View file

@ -214,11 +214,11 @@
]
},
"locked": {
"lastModified": 1620905093,
"narHash": "sha256-GskjPH+DhTylKOWRDaFVzpH/1s4zKO4MAdL9IOlbR6M=",
"lastModified": 1621080310,
"narHash": "sha256-7BMbhiVbR2qVLpBaGMGxNj9/ejoxRm3nMqtTTiXyQcw=",
"ref": "master",
"rev": "09fbbfd0f98ba82e1dc9fd0d21ab898b901ea5e8",
"revCount": 6,
"rev": "37c399d830bd6f2f789cabfae7cd21a824e976c0",
"revCount": 8,
"type": "git",
"url": "https://git.sbruder.de/simon/nixpkgs-overlay"
},

View file

@ -29,10 +29,6 @@ in
];
});
mpvScripts = (prev.mpvScripts or { }) // {
pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { };
};
# TODO: Remove patch once mako > 1.4.1 is released and in nixpkgs
mako = prev.mako.overrideAttrs (o: o // {
patches = [

View file

@ -1,31 +0,0 @@
{ 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 ];
};
}