[Nix-dev] Adding xfce4 panel plugins

Eduard Carreras i Nadal ecarreras at gmail.com
Tue Oct 9 15:32:51 CEST 2012


Hello,
I'm trying to add some goodies to xfce4 like panel plugins. I've done the
nix expression [1][2], then added to pkgs/desktops/xfce-4.8/default.nix[3].

Looking to cpufreq plugin, this builds ok doing nix-build ~/nixos/nixpkgs
-A xfce.xfce4_cpufreq_plugin.

result build tree (I omited locale dir)
result/
├── libexec
│   └── xfce4
│       └── panel-plugins
│           └── xfce4-cpufreq-plugin
└── share
    ├── icons
    │   └── hicolor
    │       ├── 16x16
    │       ├── 22x22
    │       ├── 48x48
    │       └── icon-theme.cache
    └── xfce4
        └── panel-plugins
            └── xfce4-cpufreq-plugin.desktop

Then I tried to install this package with nix-env -i
/nix/store/gas9rjahhdxkksv7k3fbq4kwgp17xrvf-xfce4-cpufreq-plugin-1.0.0 but
when I try to add the plugin there is not cpufreq plugin in the list of
xfce4 panel plugins.

My ~/.nix-profile

.nix-profile/libexec
└── xfce4
    └── panel-plugins
        └── xfce4-cpufreq-plugin

.nix-profile/share/xfce4
└── panel-plugins
    └── xfce4-cpufreq-plugin.desktop

The plugin seems that is in the right place, but xfce4 doesn't show it.

When installed with sytemPackages

ls -1 /var/run/current-system/sw/share/xfce4/panel-plugins/
thunar-tpa.desktop
xfce4-brightness-plugin.desktop
xfce4-cpufreq-plugin.desktop
xfce4-mixer-plugin.desktop
xfsm-logout-plugin.desktop

And anyone of this panel plugins are not in the list of available plugins.

I don't know what I missed or what I'm doing wrong.

Cheers


[1]
https://github.com/ecarreras/nixpkgs/blob/759f17d7d007fd63f0e4aaa74aef25f151b9de76/pkgs/desktops/xfce-4.8/panel-plugins/xfce4-systemload-plugin.nix
[2]
https://github.com/ecarreras/nixpkgs/blob/759f17d7d007fd63f0e4aaa74aef25f151b9de76/pkgs/desktops/xfce-4.8/panel-plugins/xfce4-cpufreq-plugin.nix
[3] https://github.com/ecarreras/nixpkgs/pull/1/files#L3R89

--
Eduard Carreras i Nadal <ecarreras at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20121009/c4be5b7f/attachment-0001.html 


More information about the nix-dev mailing list