about summary refs log tree commit diff
path: root/pkgs/desktops/xfce/core/libxfcegui4.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-10-14 13:23:37 +0200
committerVladimír Čunát <vcunat@gmail.com>2015-10-14 14:32:26 +0200
commit04c7506f0f9f47f3f38c3d5dff7b8dabc36368b6 (patch)
tree6e608dd4bec7e8ec3b709173d081650426e33c71 /pkgs/desktops/xfce/core/libxfcegui4.nix
parent2490848627b43c8393563b8ee50042cc8356a7f2 (diff)
downloadnixlib-04c7506f0f9f47f3f38c3d5dff7b8dabc36368b6.tar
nixlib-04c7506f0f9f47f3f38c3d5dff7b8dabc36368b6.tar.gz
nixlib-04c7506f0f9f47f3f38c3d5dff7b8dabc36368b6.tar.bz2
nixlib-04c7506f0f9f47f3f38c3d5dff7b8dabc36368b6.tar.lz
nixlib-04c7506f0f9f47f3f38c3d5dff7b8dabc36368b6.tar.xz
nixlib-04c7506f0f9f47f3f38c3d5dff7b8dabc36368b6.tar.zst
nixlib-04c7506f0f9f47f3f38c3d5dff7b8dabc36368b6.zip
xfce core: split into outputs, change style
- The split was only done where it seemed that some parts aren't really
  needed, which were mainly headers and gtk-doc.
- Update style to be closer with what's common in nixpkgs.
- Change explicit removal of icon theme cache into including the
  hicolor theme.
Diffstat (limited to 'pkgs/desktops/xfce/core/libxfcegui4.nix')
-rw-r--r--pkgs/desktops/xfce/core/libxfcegui4.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/pkgs/desktops/xfce/core/libxfcegui4.nix b/pkgs/desktops/xfce/core/libxfcegui4.nix
index 32a320c779bf..86c3bea176b2 100644
--- a/pkgs/desktops/xfce/core/libxfcegui4.nix
+++ b/pkgs/desktops/xfce/core/libxfcegui4.nix
@@ -1,31 +1,32 @@
 { stdenv, fetchurl, pkgconfig, intltool, gtk
-, libxfce4util, xfconf, libglade, libstartup_notification }:
-
-stdenv.mkDerivation rec {
+, libxfce4util, xfconf, libglade, libstartup_notification, hicolor_icon_theme }:
+let
   p_name  = "libxfcegui4";
   ver_maj = "4.10";
   ver_min = "0";
+in
+stdenv.mkDerivation rec {
+  name = "${p_name}-${ver_maj}.${ver_min}";
 
   src = fetchurl {
     url = "mirror://xfce/src/xfce/${p_name}/${ver_maj}/${name}.tar.bz2";
     sha256 = "0cs5im0ib0cmr1lhr5765yliqjfyxvk4kwy8h1l8bn3mj6bzk0ib";
   };
-  name = "${p_name}-${ver_maj}.${ver_min}";
+
+  outputs = [ "dev" "out" "doc" ]; # dev-doc only
 
   #TODO: gladeui
   # By default, libxfcegui4 tries to install into libglade's prefix.
   # Install into our own prefix instead.
-  preConfigure =
-    ''
-      configureFlags="--with-libglade-module-path=$out/lib/libglade/2.0"
-    '';
+  configureFlags = [
+    "--with-libglade-module-path=$(out)/lib/libglade/2.0"
+  ];
   #NOTE: missing keyboard library support is OK according to the mailing-list
 
   buildInputs =
     [ pkgconfig intltool gtk libxfce4util xfconf libglade
-      libstartup_notification
+      libstartup_notification hicolor_icon_theme
     ];
-  preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
 
   meta = {
     homepage = http://www.xfce.org/;