xfce: remove archiveUpdater and use httpTwoLevelsUpdater for some packages

+65 -43
+5 -7
pkgs/desktops/xfce/art/xfce4-icon-theme/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, intltool, gtk3, gnome-icon-theme, tango-icon-theme, hicolor-icon-theme, xfce }: 2 - 3 - let 4 - category = "art"; 5 - in 1 + { lib, stdenv, fetchurl, pkg-config, intltool, gtk3, gnome-icon-theme, tango-icon-theme, hicolor-icon-theme, httpTwoLevelsUpdater }: 6 2 7 3 stdenv.mkDerivation rec { 8 4 pname = "xfce4-icon-theme"; 9 5 version = "4.4.3"; 10 6 11 7 src = fetchurl { 12 - url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; 8 + url = "mirror://xfce/src/art/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; 13 9 sha256 = "sha256-1HhmktVrilY/ZqXyYPHxOt4R6Gx4y8slqfml/EfPZvo="; 14 10 }; 15 11 ··· 28 24 29 25 dontDropIconThemeCache = true; 30 26 31 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 27 + passthru.updateScript = httpTwoLevelsUpdater { 28 + url = "https://archive.xfce.org/src/art/${pname}"; 29 + }; 32 30 33 31 meta = with lib; { 34 32 homepage = "https://www.xfce.org/";
+5 -7
pkgs/desktops/xfce/art/xfwm4-themes/default.nix
··· 1 - { lib, stdenv, fetchurl, xfce }: 2 - 3 - let 4 - category = "art"; 5 - in 1 + { lib, stdenv, fetchurl, httpTwoLevelsUpdater }: 6 2 7 3 stdenv.mkDerivation rec { 8 4 pname = "xfwm4-themes"; 9 5 version = "4.10.0"; 10 6 11 7 src = fetchurl { 12 - url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; 8 + url = "mirror://xfce/src/art/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2"; 13 9 sha256 = "sha256-MhTV8A6XA7XoyefDKH1gbe3scoXOtNXbMy6TraZv1XU="; 14 10 }; 15 11 16 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 12 + passthru.updateScript = httpTwoLevelsUpdater { 13 + url = "https://archive.xfce.org/src/art/${pname}"; 14 + }; 17 15 18 16 meta = with lib; { 19 17 homepage = "https://www.xfce.org/";
-7
pkgs/desktops/xfce/default.nix
··· 5 5 6 6 genericUpdater = pkgs.genericUpdater; 7 7 8 - archiveUpdater = { category, pname, version }: 9 - pkgs.httpTwoLevelsUpdater { 10 - inherit pname version; 11 - attrPath = "xfce.${pname}"; 12 - url = "https://archive.xfce.org/src/${category}/${pname}"; 13 - }; 14 - 15 8 mkXfceDerivation = callPackage ./mkXfceDerivation.nix { }; 16 9 17 10 automakeAddFlags = pkgs.makeSetupHook { } ./automakeAddFlags.sh;
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-embed-plugin/default.nix
··· 7 7 , xfce4-panel 8 8 , libxfce4ui 9 9 , gtk2 10 - , xfce 10 + , gitUpdater 11 11 }: 12 12 13 13 let ··· 33 33 gtk2 34 34 ]; 35 35 36 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 36 + passthru.updateScript = gitUpdater { 37 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 38 + rev-prefix = "${pname}-"; 39 + }; 37 40 38 41 meta = with lib;{ 39 42 homepage = "https://docs.xfce.org/panel-plugins/xfce4-embed-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-eyes-plugin/default.nix
··· 8 8 , libxfce4ui 9 9 , xfconf 10 10 , gtk3 11 - , xfce 11 + , gitUpdater 12 12 }: 13 13 14 14 let ··· 35 35 gtk3 36 36 ]; 37 37 38 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 38 + passthru.updateScript = gitUpdater { 39 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 40 + rev-prefix = "${pname}-"; 41 + }; 39 42 40 43 meta = with lib; { 41 44 homepage = "https://docs.xfce.org/panel-plugins/xfce4-eyes-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-fsguard-plugin/default.nix
··· 8 8 , libxfce4ui 9 9 , xfconf 10 10 , gtk3 11 - , xfce 11 + , gitUpdater 12 12 }: 13 13 14 14 let ··· 35 35 gtk3 36 36 ]; 37 37 38 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 38 + passthru.updateScript = gitUpdater { 39 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 40 + rev-prefix = "${pname}-"; 41 + }; 39 42 40 43 meta = with lib; { 41 44 homepage = "https://docs.xfce.org/panel-plugins/xfce4-fsguard-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-genmon-plugin/default.nix
··· 7 7 , xfce4-panel 8 8 , libxfce4ui 9 9 , gtk3 10 - , xfce 10 + , gitUpdater 11 11 }: 12 12 13 13 let ··· 33 33 gtk3 34 34 ]; 35 35 36 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 36 + passthru.updateScript = gitUpdater { 37 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 38 + rev-prefix = "${pname}-"; 39 + }; 37 40 38 41 meta = with lib; { 39 42 homepage = "https://docs.xfce.org/panel-plugins/xfce4-genmon-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-mailwatch-plugin/default.nix
··· 1 1 { lib, stdenv, fetchurl, pkg-config, intltool, xfce4-panel, libxfce4ui, 2 - exo, gnutls, libgcrypt, xfce }: 2 + exo, gnutls, libgcrypt, gitUpdater }: 3 3 4 4 let 5 5 category = "panel-plugins"; ··· 27 27 libgcrypt 28 28 ]; 29 29 30 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 30 + passthru.updateScript = gitUpdater { 31 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 32 + rev-prefix = "${pname}-"; 33 + }; 31 34 32 35 meta = with lib; { 33 36 homepage = "https://docs.xfce.org/panel-plugins/xfce4-mailwatch-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-mpc-plugin/default.nix
··· 1 1 { lib, stdenv, fetchurl, pkg-config, intltool, libxfce4util, xfce4-panel, 2 - libxfce4ui, gtk3, exo, xfce }: 2 + libxfce4ui, gtk3, exo, gitUpdater }: 3 3 4 4 let 5 5 category = "panel-plugins"; ··· 27 27 exo 28 28 ]; 29 29 30 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 30 + passthru.updateScript = gitUpdater { 31 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 32 + rev-prefix = "${pname}-"; 33 + }; 31 34 32 35 meta = with lib; { 33 36 homepage = "https://docs.xfce.org/panel-plugins/xfce4-mpc-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-notes-plugin/default.nix
··· 6 6 , xfce4-panel 7 7 , libxfce4ui 8 8 , xfconf 9 - , xfce 9 + , gitUpdater 10 10 }: 11 11 12 12 let ··· 31 31 xfconf 32 32 ]; 33 33 34 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 34 + passthru.updateScript = gitUpdater { 35 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 36 + rev-prefix = "${pname}-"; 37 + }; 35 38 36 39 meta = with lib; { 37 40 homepage = "https://docs.xfce.org/panel-plugins/xfce4-notes-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-sensors-plugin/default.nix
··· 1 1 { lib, stdenv, fetchurl, pkg-config, intltool, gtk3, libxfce4ui, 2 - libxfce4util, xfce4-panel, libnotify, lm_sensors, hddtemp, netcat-gnu, xfce 2 + libxfce4util, xfce4-panel, libnotify, lm_sensors, hddtemp, netcat-gnu, gitUpdater 3 3 }: 4 4 5 5 let ··· 38 38 "--with-pathnetcat=${netcat-gnu}/bin/netcat" 39 39 ]; 40 40 41 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 41 + passthru.updateScript = gitUpdater { 42 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 43 + rev-prefix = "${pname}-"; 44 + }; 42 45 43 46 meta = with lib; { 44 47 homepage = "https://docs.xfce.org/panel-plugins/xfce4-sensors-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-systemload-plugin/default.nix
··· 6 6 , xfce4-panel 7 7 , libxfce4ui 8 8 , xfconf 9 - , xfce 9 + , gitUpdater 10 10 }: 11 11 12 12 let ··· 31 31 xfconf 32 32 ]; 33 33 34 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 34 + passthru.updateScript = gitUpdater { 35 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 36 + rev-prefix = "${pname}-"; 37 + }; 35 38 36 39 meta = with lib; { 37 40 homepage = "https://docs.xfce.org/panel-plugins/xfce4-systemload-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-timer-plugin/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, intltool, libxfce4util, xfce4-panel, libxfce4ui, gtk3, hicolor-icon-theme, xfce }: 1 + { lib, stdenv, fetchurl, pkg-config, intltool, libxfce4util, xfce4-panel, libxfce4ui, gtk3, hicolor-icon-theme, gitUpdater }: 2 2 3 3 let 4 4 category = "panel-plugins"; ··· 28 28 29 29 hardeningDisable = [ "format" ]; 30 30 31 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 31 + passthru.updateScript = gitUpdater { 32 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 33 + rev-prefix = "${pname}-"; 34 + }; 32 35 33 36 meta = with lib; { 34 37 homepage = "https://docs.xfce.org/panel-plugins/xfce4-timer-plugin";
+5 -2
pkgs/desktops/xfce/panel-plugins/xfce4-weather-plugin/default.nix
··· 1 1 { lib, stdenv, fetchurl, pkg-config, intltool, libxml2, libsoup, upower, 2 - libxfce4ui, xfce4-panel, xfconf, hicolor-icon-theme, xfce }: 2 + libxfce4ui, xfce4-panel, xfconf, hicolor-icon-theme, gitUpdater }: 3 3 4 4 let 5 5 category = "panel-plugins"; ··· 31 31 32 32 enableParallelBuilding = true; 33 33 34 - passthru.updateScript = xfce.archiveUpdater { inherit category pname version; }; 34 + passthru.updateScript = gitUpdater { 35 + url = "https://gitlab.xfce.org/panel-plugins/${pname}"; 36 + rev-prefix = "${pname}-"; 37 + }; 35 38 36 39 meta = with lib; { 37 40 homepage = "https://docs.xfce.org/panel-plugins/xfce4-weather-plugin";