Merge pull request #112179 from otavio/auto-upgrade/anydesk
anydesk: Add auto-update support
This commit is contained in:
commit
10a3345269
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl, makeWrapper, makeDesktopItem
|
{ lib, stdenv, fetchurl, makeWrapper, makeDesktopItem, genericUpdater, writeShellScript
|
||||||
, atk, cairo, gdk-pixbuf, glib, gnome2, gtk2, libGLU, libGL, pango, xorg
|
, atk, cairo, gdk-pixbuf, glib, gnome2, gtk2, libGLU, libGL, pango, xorg
|
||||||
, lsb-release, freetype, fontconfig, polkit, polkit_gnome
|
, lsb-release, freetype, fontconfig, polkit, polkit_gnome
|
||||||
, pulseaudio }:
|
, pulseaudio }:
|
||||||
|
@ -28,6 +28,19 @@ in stdenv.mkDerivation rec {
|
||||||
sha256 = "1qbq6r0yanjappsi8yglw8r54bwf32bjb2i63awmr6pk5kmhhy3r";
|
sha256 = "1qbq6r0yanjappsi8yglw8r54bwf32bjb2i63awmr6pk5kmhhy3r";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = genericUpdater {
|
||||||
|
inherit pname version;
|
||||||
|
versionLister = writeShellScript "anydesk-versionLister" ''
|
||||||
|
echo "# Versions for $1:" >> "$2"
|
||||||
|
curl -s https://anydesk.com/en/downloads/linux \
|
||||||
|
| grep "https://[a-z0-9._/-]*-amd64.tar.gz" -o \
|
||||||
|
| uniq \
|
||||||
|
| sed 's,.*/anydesk-\(.*\)-amd64.tar.gz,\1,g'
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
atk cairo gdk-pixbuf glib gtk2 stdenv.cc.cc pango
|
atk cairo gdk-pixbuf glib gtk2 stdenv.cc.cc pango
|
||||||
gnome2.gtkglext libGLU libGL freetype fontconfig
|
gnome2.gtkglext libGLU libGL freetype fontconfig
|
||||||
|
|
Loading…
Reference in New Issue