vlc: add update script

This commit is contained in:
Alois Wohlschlager 2024-06-16 10:58:51 +02:00
parent e9ee548d90
commit 38ab61e74b
No known key found for this signature in database
GPG Key ID: E0F59EA5E5216914

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/";