summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-10-10 22:34:48 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-10-10 22:34:48 +0000
commit0fcf6e1f404ebb7fae1d3c659334e12a78d89273 (patch)
treee4e0417588c759f6c1f5a43ada94fb717871d1b5 /pkgs/desktops
parent71b6bc2be54d5836bf131df1c7fcfddf0c25b187 (diff)
downloadnixpkgs-0fcf6e1f404ebb7fae1d3c659334e12a78d89273.tar
nixpkgs-0fcf6e1f404ebb7fae1d3c659334e12a78d89273.tar.gz
nixpkgs-0fcf6e1f404ebb7fae1d3c659334e12a78d89273.tar.bz2
nixpkgs-0fcf6e1f404ebb7fae1d3c659334e12a78d89273.tar.lz
nixpkgs-0fcf6e1f404ebb7fae1d3c659334e12a78d89273.tar.xz
nixpkgs-0fcf6e1f404ebb7fae1d3c659334e12a78d89273.tar.zst
nixpkgs-0fcf6e1f404ebb7fae1d3c659334e12a78d89273.zip
* Added xfce4-mixer. This requires gstreamer and gst-plugins-base.
* Allow gst-plugins-base to be built with a minimal set of dependencies
  (to prevent dependency bloat in Xfce).
* Updated gstreamer.

svn path=/nixpkgs/trunk/; revision=24207
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/xfce-4/applications/xfce4-mixer.nix38
-rw-r--r--pkgs/desktops/xfce-4/default.nix2
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/desktops/xfce-4/applications/xfce4-mixer.nix b/pkgs/desktops/xfce-4/applications/xfce4-mixer.nix
new file mode 100644
index 00000000000..db28274be07
--- /dev/null
+++ b/pkgs/desktops/xfce-4/applications/xfce4-mixer.nix
@@ -0,0 +1,38 @@
+{ stdenv, fetchurl, pkgconfig, intltool, glib, gst_all, gtk
+, libxfce4util, libxfcegui4, xfce4panel, xfconf, makeWrapper }:
+
+let
+
+  # The usual Gstreamer plugins package has a zillion dependencies
+  # that we don't need for a simple mixer, so build a minimal package.
+  gstPluginsBase = gst_all.gstPluginsBase.override {
+    minimalDeps = true;
+  };
+
+in
+
+stdenv.mkDerivation rec {
+  name = "xfce4-mixer-4.6.1";
+  
+  src = fetchurl {
+    url = "http://archive.xfce.org/src/apps/xfce4-mixer/4.6/${name}.tar.bz2";
+    sha1 = "e86163782fc4fc31671c7cb212d23d34106ad3af";
+  };
+
+  buildInputs =
+    [ pkgconfig intltool glib gst_all.gstreamer gstPluginsBase gtk
+      libxfce4util libxfcegui4 xfce4panel xfconf makeWrapper
+    ];
+
+  postInstall =
+    ''
+      mkdir -p $out/nix-support
+      echo ${gstPluginsBase} > $out/nix-support/propagated-user-env-packages
+    '';
+
+  meta = {
+    homepage = http://www.xfce.org/projects/xfce4-mixer;
+    description = "A volume control application for the Xfce desktop environment";
+    license = "GPLv2+";
+  };
+}
diff --git a/pkgs/desktops/xfce-4/default.nix b/pkgs/desktops/xfce-4/default.nix
index 3d4abf9b358..6f2eaf1b4bf 100644
--- a/pkgs/desktops/xfce-4/default.nix
+++ b/pkgs/desktops/xfce-4/default.nix
@@ -57,6 +57,8 @@ rec {
 
   xfce4_power_manager = callPackage ./applications/xfce4-power-manager.nix { };
 
+  xfce4mixer = callPackage ./applications/xfce4-mixer.nix { };
+
   #### ART
 
   xfce4icontheme = callPackage ./art/xfce4-icon-theme.nix { };