From 666f581be8539316920252e38ca82dfef9587c2e Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 Aug 2018 23:42:57 +0200 Subject: [PATCH] mobile-broadband-provider-info: add updateScript --- .../default.nix | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pkgs/data/misc/mobile-broadband-provider-info/default.nix b/pkgs/data/misc/mobile-broadband-provider-info/default.nix index 9f135c423bc8..a2df56c0898f 100644 --- a/pkgs/data/misc/mobile-broadband-provider-info/default.nix +++ b/pkgs/data/misc/mobile-broadband-provider-info/default.nix @@ -1,23 +1,25 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, gnome3 }: -let - version = "20190116"; - pname = "mobile-broadband-provider-info"; - name = "${pname}-${version}"; -in stdenv.mkDerivation rec { - inherit name; + pname = "mobile-broadband-provider-info"; + version = "20190116"; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${version}/${name}.tar.xz"; + url = "mirror://gnome/sources/${pname}/${version}/${pname}-${version}.tar.xz"; sha256 = "16y5lc7pfdvai9c8xwb825zc3v46039gghbip13fqslf5gw11fic"; }; - meta = { + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + }; + }; + + meta = with stdenv.lib; { description = "Mobile broadband service provider database"; - homepage = http://live.gnome.org/NetworkManager/MobileBroadband/ServiceProviders; - platforms = stdenv.lib.platforms.all; - license = stdenv.lib.licenses.publicDomain; + homepage = https://wiki.gnome.org/Projects/NetworkManager/MobileBroadband/ServiceProviders; + license = licenses.publicDomain; maintainers = [ ]; + platforms = platforms.all; }; }