Merge pull request #188166 from kmicklas/mpvacious-0.18
mpvacious: 0.15 -> 0.18
This commit is contained in:
commit
d47c3f211a
|
@ -8,28 +8,31 @@
|
|||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "mpvacious";
|
||||
version = "0.15";
|
||||
version = "0.18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ajatt-Tools";
|
||||
repo = "mpvacious";
|
||||
rev = "v${version}";
|
||||
sha256 = "1lxlgbjk4x3skg5s7kkr9llcdlmpmabfrcslwhhz5f4j3bq7498w";
|
||||
sha256 = "sha256-FiYEpZVaeJQVSXa9obFYSKNVASJolOBm5D3faOlCzNY=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace subs2srs.lua \
|
||||
--replace "'curl'" "'${curl}/bin/curl'" \
|
||||
--replace "'wl-copy'" "'${wl-clipboard}/bin/wl-copy'" \
|
||||
--replace "xclip" "${xclip}/bin/xclip"
|
||||
substituteInPlace utils/forvo.lua \
|
||||
--replace "'curl" "'${curl}/bin/curl"
|
||||
substituteInPlace platform/nix.lua \
|
||||
--replace "'curl" "'${curl}/bin/curl" \
|
||||
--replace "'wl-copy" "'${wl-clipboard}/bin/wl-copy" \
|
||||
--replace "'xclip" "'${xclip}/bin/xclip"
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/mpv/scripts/mpvacious
|
||||
cp *.lua $out/share/mpv/scripts/mpvacious
|
||||
rm -r .github
|
||||
mkdir -p $out/share/mpv/scripts
|
||||
cp -r . $out/share/mpv/scripts/mpvacious
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue