Merge pull request #320208 from alois31/vlc-update

vlc: add update script
This commit is contained in:
superherointj
2024-06-18 00:53:43 -03:00
committed by GitHub
+9
View File
@@ -5,6 +5,7 @@
, alsa-lib
, autoreconfHook
, avahi
, curl
, dbus
, faad2
, fetchpatch
@@ -15,6 +16,7 @@
, freefont_ttf
, freetype
, fribidi
, genericUpdater
, gnutls
, libSM
, libXext
@@ -78,6 +80,7 @@
, wayland
, wayland-protocols
, wrapGAppsHook3
, writeShellScript
, xcbutilkeysyms
, zlib
@@ -289,6 +292,12 @@ stdenv.mkDerivation (finalAttrs: {
remove-references-to -t "${libsForQt5.qtbase.dev}" $out/lib/vlc/plugins/gui/libqt_plugin.so
'';
passthru.updateScript = genericUpdater {
versionLister = writeShellScript "vlc-versionLister" ''
${curl}/bin/curl -s https://get.videolan.org/vlc/ | sed -En 's/^.*href="([0-9]+(\.[0-9]+)+)\/".*$/\1/p'
'';
};
meta = {
description = "Cross-platform media player and streaming server";
homepage = "https://www.videolan.org/vlc/";