xfce: remove archiveUpdater and use httpTwoLevelsUpdater for some packages
This commit is contained in:
parent
4d62007aa7
commit
3a36ccc075
@ -1,15 +1,11 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, intltool, gtk3, gnome-icon-theme, tango-icon-theme, hicolor-icon-theme, xfce }:
|
||||
|
||||
let
|
||||
category = "art";
|
||||
in
|
||||
{ lib, stdenv, fetchurl, pkg-config, intltool, gtk3, gnome-icon-theme, tango-icon-theme, hicolor-icon-theme, httpTwoLevelsUpdater }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xfce4-icon-theme";
|
||||
version = "4.4.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
|
||||
url = "mirror://xfce/src/art/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
|
||||
sha256 = "sha256-1HhmktVrilY/ZqXyYPHxOt4R6Gx4y8slqfml/EfPZvo=";
|
||||
};
|
||||
|
||||
@ -28,7 +24,9 @@ stdenv.mkDerivation rec {
|
||||
|
||||
dontDropIconThemeCache = true;
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = httpTwoLevelsUpdater {
|
||||
url = "https://archive.xfce.org/src/art/${pname}";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.xfce.org/";
|
||||
|
@ -1,19 +1,17 @@
|
||||
{ lib, stdenv, fetchurl, xfce }:
|
||||
|
||||
let
|
||||
category = "art";
|
||||
in
|
||||
{ lib, stdenv, fetchurl, httpTwoLevelsUpdater }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "xfwm4-themes";
|
||||
version = "4.10.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://xfce/src/${category}/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
|
||||
url = "mirror://xfce/src/art/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
|
||||
sha256 = "sha256-MhTV8A6XA7XoyefDKH1gbe3scoXOtNXbMy6TraZv1XU=";
|
||||
};
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = httpTwoLevelsUpdater {
|
||||
url = "https://archive.xfce.org/src/art/${pname}";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.xfce.org/";
|
||||
|
@ -5,13 +5,6 @@ lib.makeScope pkgs.newScope (self: with self; {
|
||||
|
||||
genericUpdater = pkgs.genericUpdater;
|
||||
|
||||
archiveUpdater = { category, pname, version }:
|
||||
pkgs.httpTwoLevelsUpdater {
|
||||
inherit pname version;
|
||||
attrPath = "xfce.${pname}";
|
||||
url = "https://archive.xfce.org/src/${category}/${pname}";
|
||||
};
|
||||
|
||||
mkXfceDerivation = callPackage ./mkXfceDerivation.nix { };
|
||||
|
||||
automakeAddFlags = pkgs.makeSetupHook { } ./automakeAddFlags.sh;
|
||||
|
@ -7,7 +7,7 @@
|
||||
, xfce4-panel
|
||||
, libxfce4ui
|
||||
, gtk2
|
||||
, xfce
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
let
|
||||
@ -33,7 +33,10 @@ in stdenv.mkDerivation rec {
|
||||
gtk2
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib;{
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-embed-plugin";
|
||||
|
@ -8,7 +8,7 @@
|
||||
, libxfce4ui
|
||||
, xfconf
|
||||
, gtk3
|
||||
, xfce
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
let
|
||||
@ -35,7 +35,10 @@ in stdenv.mkDerivation rec {
|
||||
gtk3
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-eyes-plugin";
|
||||
|
@ -8,7 +8,7 @@
|
||||
, libxfce4ui
|
||||
, xfconf
|
||||
, gtk3
|
||||
, xfce
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
let
|
||||
@ -35,7 +35,10 @@ in stdenv.mkDerivation rec {
|
||||
gtk3
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-fsguard-plugin";
|
||||
|
@ -7,7 +7,7 @@
|
||||
, xfce4-panel
|
||||
, libxfce4ui
|
||||
, gtk3
|
||||
, xfce
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
let
|
||||
@ -33,7 +33,10 @@ in stdenv.mkDerivation rec {
|
||||
gtk3
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-genmon-plugin";
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, intltool, xfce4-panel, libxfce4ui,
|
||||
exo, gnutls, libgcrypt, xfce }:
|
||||
exo, gnutls, libgcrypt, gitUpdater }:
|
||||
|
||||
let
|
||||
category = "panel-plugins";
|
||||
@ -27,7 +27,10 @@ stdenv.mkDerivation rec {
|
||||
libgcrypt
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-mailwatch-plugin";
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, intltool, libxfce4util, xfce4-panel,
|
||||
libxfce4ui, gtk3, exo, xfce }:
|
||||
libxfce4ui, gtk3, exo, gitUpdater }:
|
||||
|
||||
let
|
||||
category = "panel-plugins";
|
||||
@ -27,7 +27,10 @@ stdenv.mkDerivation rec {
|
||||
exo
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-mpc-plugin";
|
||||
|
@ -6,7 +6,7 @@
|
||||
, xfce4-panel
|
||||
, libxfce4ui
|
||||
, xfconf
|
||||
, xfce
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
let
|
||||
@ -31,7 +31,10 @@ in stdenv.mkDerivation rec {
|
||||
xfconf
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-notes-plugin";
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, intltool, gtk3, libxfce4ui,
|
||||
libxfce4util, xfce4-panel, libnotify, lm_sensors, hddtemp, netcat-gnu, xfce
|
||||
libxfce4util, xfce4-panel, libnotify, lm_sensors, hddtemp, netcat-gnu, gitUpdater
|
||||
}:
|
||||
|
||||
let
|
||||
@ -38,7 +38,10 @@ stdenv.mkDerivation rec {
|
||||
"--with-pathnetcat=${netcat-gnu}/bin/netcat"
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-sensors-plugin";
|
||||
|
@ -6,7 +6,7 @@
|
||||
, xfce4-panel
|
||||
, libxfce4ui
|
||||
, xfconf
|
||||
, xfce
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
let
|
||||
@ -31,7 +31,10 @@ in stdenv.mkDerivation rec {
|
||||
xfconf
|
||||
];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-systemload-plugin";
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, intltool, libxfce4util, xfce4-panel, libxfce4ui, gtk3, hicolor-icon-theme, xfce }:
|
||||
{ lib, stdenv, fetchurl, pkg-config, intltool, libxfce4util, xfce4-panel, libxfce4ui, gtk3, hicolor-icon-theme, gitUpdater }:
|
||||
|
||||
let
|
||||
category = "panel-plugins";
|
||||
@ -28,7 +28,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-timer-plugin";
|
||||
|
@ -1,5 +1,5 @@
|
||||
{ lib, stdenv, fetchurl, pkg-config, intltool, libxml2, libsoup, upower,
|
||||
libxfce4ui, xfce4-panel, xfconf, hicolor-icon-theme, xfce }:
|
||||
libxfce4ui, xfce4-panel, xfconf, hicolor-icon-theme, gitUpdater }:
|
||||
|
||||
let
|
||||
category = "panel-plugins";
|
||||
@ -31,7 +31,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.updateScript = xfce.archiveUpdater { inherit category pname version; };
|
||||
passthru.updateScript = gitUpdater {
|
||||
url = "https://gitlab.xfce.org/panel-plugins/${pname}";
|
||||
rev-prefix = "${pname}-";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://docs.xfce.org/panel-plugins/xfce4-weather-plugin";
|
||||
|
Loading…
Reference in New Issue
Block a user