Skip to content

Commit

Permalink
xfce: add update scripts to xfce packages
Browse files Browse the repository at this point in the history
  • Loading branch information
romildo committed Apr 15, 2020
1 parent 8162d76 commit 06ba312
Show file tree
Hide file tree
Showing 34 changed files with 325 additions and 171 deletions.
1 change: 1 addition & 0 deletions pkgs/desktops/xfce/applications/gigolo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mkXfceDerivation {
category = "apps";
pname = "gigolo";
version = "0.5.0";
odd-unstable = false;

sha256 = "1lqsxb0d5i8p9vbzx8s4p3rga7va5h1q146xgmsa41j5v40wrlw6";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mkXfceDerivation {
category = "apps";
pname = "xfce4-screenshooter";
version = "1.9.5";
odd-unstable = false;

sha256 = "1h14sywvk9l06p3z1cpb79911j8w2wqbk03ldknjkia2rfymjk06";

Expand Down
18 changes: 12 additions & 6 deletions pkgs/desktops/xfce/applications/xfce4-volumed/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{ stdenv, fetchurl, pkgconfig, makeWrapper
, gstreamer, gtk2, gst-plugins-base, libnotify
, keybinder, xfconf
, keybinder, xfconf, xfce
}:

let
category = "apps";

# The usual Gstreamer plugins package has a zillion dependencies
# that we don't need for a simple mixer, so build a minimal package.
gst_plugins_minimal = gst-plugins-base.override {
Expand All @@ -13,15 +15,13 @@ let
in

stdenv.mkDerivation rec {
p_name = "xfce4-volumed";
ver_maj = "0.1";
ver_min = "13";
pname = "xfce4-volumed";
version = "0.1.13";

src = fetchurl {
url = "mirror://xfce/src/apps/${p_name}/${ver_maj}/${name}.tar.bz2";
url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "1aa0a1sbf9yzi7bc78kw044m0xzg1li3y4w9kf20wqv5kfjs7v2c";
};
name = "${p_name}-${ver_maj}.${ver_min}";

buildInputs =
[ gstreamer gst_plugins_minimal gtk2
Expand All @@ -36,6 +36,12 @@ stdenv.mkDerivation rec {
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH"
'';

passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.archiveLister category pname;
};

meta = with stdenv.lib; {
homepage = "https://www.xfce.org/projects/xfce4-volumed"; # referenced but inactive
description = "A volume keys control daemon for the Xfce desktop environment";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/desktops/xfce/applications/xfdashboard/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ mkXfceDerivation {
category = "apps";
pname = "xfdashboard";
version = "0.7.5";
rev = "0.7.5";
rev-prefix = "";
odd-unstable = false;

sha256 = "0d0kg90h3li41bs75z3xldljsglkz220pba39c54qznnzb8v8a2i";

Expand Down
26 changes: 17 additions & 9 deletions pkgs/desktops/xfce/art/xfce4-icon-theme.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
{ stdenv, fetchurl, pkgconfig, intltool, gtk2 }:
{ stdenv, fetchurl, pkgconfig, intltool, gtk2, xfce }:

let
category = "art";
in

stdenv.mkDerivation rec {
p_name = "xfce4-icon-theme";
ver_maj = "4.4";
ver_min = "3";
pname = "xfce4-icon-theme";
version = "4.4.3";

src = fetchurl {
url = "mirror://xfce/src/art/${p_name}/${ver_maj}/${name}.tar.bz2";
url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "1yk6rx3zr9grm4jwpjvqdkl13pisy7qn1wm5cqzmd2kbsn96cy6l";
};
name = "${p_name}-${ver_maj}.${ver_min}";

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ intltool gtk2 ];

passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.archiveLister category pname;
};

meta = {
meta = with stdenv.lib; {
homepage = "https://www.xfce.org/";
description = "Icons for Xfce";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.eelco ];
platforms = platforms.linux;
maintainers = [ maintainers.eelco ];
};
}
20 changes: 14 additions & 6 deletions pkgs/desktops/xfce/art/xfwm4-themes.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, xfce }:

let
category = "art";
in

stdenv.mkDerivation rec {
p_name = "xfwm4-themes";
ver_maj = "4.10";
ver_min = "0";
pname = "xfwm4-themes";
version = "4.10.0";

src = fetchurl {
url = "mirror://xfce/src/art/${p_name}/${ver_maj}/${name}.tar.bz2";
url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "0xfmdykav4rf6gdxbd6fhmrfrvbdc1yjihz7r7lba0wp1vqda51j";
};
name = "${p_name}-${ver_maj}.${ver_min}";

passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.archiveLister category pname;
};

meta = with stdenv.lib; {
homepage = "https://www.xfce.org/";
Expand Down
2 changes: 2 additions & 0 deletions pkgs/desktops/xfce/core/thunar-volman/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ mkXfceDerivation {

sha256 = "1qrlpn0q5g9psd41l6y80r3bvbg8jaic92m6r400zzwcvivf95z0";

odd-unstable = false;

meta = {
description = "Thunar extension for automatic management of removable drives and media";
};
Expand Down
23 changes: 19 additions & 4 deletions pkgs/desktops/xfce/mkXfceDerivation.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
{ stdenv, fetchgit, pkgconfig, xfce4-dev-tools, hicolor-icon-theme, wrapGAppsHook }:

{ category, pname, version, rev ? "${pname}-${version}", sha256, ... } @ args:
{ stdenv, fetchgit, pkgconfig, xfce4-dev-tools, hicolor-icon-theme, xfce, wrapGAppsHook }:

{ category
, pname
, version
, attrPath ? "xfce.${pname}"
, rev-prefix ? "${pname}-"
, rev ? "${rev-prefix}${version}"
, sha256
, odd-unstable ? true
, patchlevel-unstable ? true
, ...
} @ args:

let
inherit (builtins) filter getAttr head isList;
Expand All @@ -12,7 +22,7 @@ let
concatAttrLists = attrsets:
zipAttrsWithNames (filterAttrNames isList (head attrsets)) (_: concatLists) attrsets;

template = {
template = rec {
name = "${pname}-${version}";

nativeBuildInputs = [ pkgconfig xfce4-dev-tools wrapGAppsHook ];
Expand All @@ -29,6 +39,11 @@ let

pos = builtins.unsafeGetAttrPos "pname" args;

passthru.updateScript = xfce.updateScript {
inherit pname version attrPath rev-prefix odd-unstable patchlevel-unstable;
versionLister = xfce.gitLister src.url;
};

meta = with stdenv.lib; {
homepage = "https://git.xfce.org/${category}/${pname}/about";
license = licenses.gpl2; # some libraries are under LGPLv2+
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{ mkXfceDerivation, gtk3, libxfce4ui, libxfce4util, xfce4-panel, xfconf }:

mkXfceDerivation rec {
mkXfceDerivation {
category = "panel-plugins";
pname = "xfce4-battery-plugin";
version = "1.1.2";
rev = version;
rev-prefix = "";
odd-unstable = false;
sha256 = "0329miiclc8da6j0sz495p99hyrf9fjhvpmdl0556fphybz5agc0";

buildInputs = [ gtk3 libxfce4ui libxfce4util xfce4-panel xfconf ];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{ mkXfceDerivation, gtk3, libXtst, libxfce4ui, libxfce4util, xfce4-panel, xfconf, exo }:

mkXfceDerivation rec {
mkXfceDerivation {
category = "panel-plugins";
pname = "xfce4-clipman-plugin";
version = "1.4.3";
rev = version;
sha256 = "1xk79xh1zk0x4r1z9m1dakp79pip0zh3naviybvl1dnpwwfc03gq";

buildInputs = [ exo gtk3 libXtst libxfce4ui libxfce4util xfce4-panel xfconf ];
Expand Down
25 changes: 16 additions & 9 deletions pkgs/desktops/xfce/panel-plugins/xfce4-cpugraph-plugin.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{ stdenv, fetchurl, pkgconfig, intltool, glib, exo, libXtst, xorgproto, libxfce4util, xfce4-panel, libxfce4ui, xfconf, gtk2, hicolor-icon-theme }:
{ stdenv, fetchurl, pkgconfig, intltool, glib, exo, libXtst, xorgproto, libxfce4util, xfce4-panel, libxfce4ui, xfconf, gtk2, hicolor-icon-theme, xfce }:

let
category = "panel-plugins";
in

with stdenv.lib;
stdenv.mkDerivation rec {
p_name = "xfce4-cpugraph-plugin";
ver_maj = "1.0";
ver_min = "5";
pname = "xfce4-cpugraph-plugin";
version = "1.0.5";

src = fetchurl {
url = "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.bz2";
url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "1izl53q95m5xm2fiq7385vb1i9nwgjizxkmgpgh33zdckb40xnl5";
};
name = "${p_name}-${ver_maj}.${ver_min}";

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ intltool glib exo libXtst xorgproto libxfce4util libxfce4ui xfce4-panel xfconf gtk2 hicolor-icon-theme ];

passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.archiveLister category pname;
};

meta = {
homepage = "https://goodies.xfce.org/projects/panel-plugins/${p_name}";
meta = with stdenv.lib; {
homepage = "https://goodies.xfce.org/projects/panel-plugins/${pname}";
description = "CPU graph show for Xfce panel";
platforms = platforms.linux;
maintainers = [ maintainers.AndersonTorres ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
, gettext
}:

mkXfceDerivation rec {
mkXfceDerivation {
category = "panel-plugins";
pname = "xfce4-datetime-plugin";
version = "0.8.0";

rev = "datetime-${version}";

rev-prefix = "datetime-";
sha256 = "12drh7y70d70r93lpv43fkj5cbyl0vciz4a41nxrknrfbhxrvyah";

nativeBuildInputs = [
Expand Down
25 changes: 16 additions & 9 deletions pkgs/desktops/xfce/panel-plugins/xfce4-dict-plugin.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, xfce4-panel, libxfce4ui, xfconf, gtk2}:
{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, xfce4-panel, libxfce4ui, xfconf, gtk2, xfce }:

let
category = "panel-plugins";
in

with stdenv.lib;
stdenv.mkDerivation rec {
p_name = "xfce4-dict-plugin";
ver_maj = "0.3";
ver_min = "0";
pname = "xfce4-dict-plugin";
version = "0.3.0";

src = fetchurl {
url = "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.gz";
url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "1x0imfnsdfq7fbhka8bc0yjjspkcljc1jafhrwzb08qi9bk2wbar";
};
name = "${p_name}-${ver_maj}.${ver_min}";

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ intltool libxfce4util libxfce4ui xfce4-panel xfconf gtk2 ];

passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.archiveLister category pname;
};

meta = {
homepage = "https://goodies.xfce.org/projects/panel-plugins/${p_name}";
meta =with stdenv.lib; {
homepage = "https://goodies.xfce.org/projects/panel-plugins/${pname}";
description = "Dictionary plugin for Xfce panel";
platforms = platforms.linux;
maintainers = [ maintainers.AndersonTorres ];
Expand Down
3 changes: 2 additions & 1 deletion pkgs/desktops/xfce/panel-plugins/xfce4-dockbarx-plugin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
, dockbarx, gtk2, xfce, pythonPackages, wafHook }:

stdenv.mkDerivation rec {
pname = "xfce4-dockbarx-plugin";
version = "${ver}-${rev}";
ver = "0.5";
rev = "a2dcb66";
name = "xfce4-dockbarx-plugin-${ver}-${rev}";

src = fetchFromGitHub {
owner = "TiZ-EX1";
Expand Down
22 changes: 15 additions & 7 deletions pkgs/desktops/xfce/panel-plugins/xfce4-embed-plugin.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, xfce4-panel, libxfce4ui, xfconf, gtk2 }:
{ stdenv, fetchurl, pkgconfig, intltool, libxfce4util, xfce4-panel, libxfce4ui, xfconf, gtk2, xfce }:

let
category = "panel-plugins";
in

with stdenv.lib;
stdenv.mkDerivation rec {
p_name = "xfce4-embed-plugin";
ver_maj = "1.6";
ver_min = "0";
pname = "xfce4-embed-plugin";
version = "1.6.0";

src = fetchurl {
url = "mirror://xfce/src/panel-plugins/${p_name}/${ver_maj}/${name}.tar.bz2";
url = "mirror://xfce/src/${category}/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "0a72kqsjjh45swimqlpyrahdnplp0383v0i4phr4n6g8c1ixyry7";
};
name = "${p_name}-${ver_maj}.${ver_min}";

nativeBuildInputs = [ pkgconfig ];
buildInputs = [ intltool libxfce4util libxfce4ui xfce4-panel xfconf gtk2 ];

passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.archiveLister category pname;
};

meta = {
homepage = "https://goodies.xfce.org/projects/panel-plugins/${p_name}";
homepage = "https://goodies.xfce.org/projects/panel-plugins/${pname}";
description = "Embed arbitrary app windows on Xfce panel";
platforms = platforms.linux;
maintainers = [ maintainers.AndersonTorres ];
Expand Down
Loading

0 comments on commit 06ba312

Please sign in to comment.