vlc: add update script
This commit is contained in:
parent
e9ee548d90
commit
38ab61e74b
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user