Author: cillian
Date: Sat Apr 23 00:22:40 2011
New Revision: 26926
URL: https://svn.nixos.org/websvn/nix/?rev=26926&sc=1

Log:
Adding lash, session management system for GNU/Linux audio applications

Added:
   nixpkgs/trunk/pkgs/applications/audio/lash/
   nixpkgs/trunk/pkgs/applications/audio/lash/default.nix
   nixpkgs/trunk/pkgs/applications/audio/lash/socket.patch
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/applications/audio/lash/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/applications/audio/lash/default.nix      Sat Apr 23 
00:22:40 2011        (r26926)
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, alsaLib, gtk, jackaudio, libuuid, libxml2,
+makeWrapper, pkgconfig, readline }:
+
+stdenv.mkDerivation  rec {
+  name = "lash-${version}";
+  version = "0.5.4";
+
+  src = fetchurl {
+    url = "mirror://savannah/lash/${name}.tar.gz";
+    sha256 = "05kc4brcx8mncai0rj2gz4s4bsrsy9q8xlnaddf75i0m8jl7snhh";
+  };
+
+  patches = [ ./socket.patch ];
+
+  buildInputs = [ alsaLib gtk jackaudio libuuid libxml2 makeWrapper
+    pkgconfig readline ];
+
+  postInstall = ''
+    for i in lash_control lash_panel
+      do wrapProgram "$out/bin/$i" --prefix LD_LIBRARY_PATH ":" 
"${libuuid}/lib"
+    done
+  '';
+
+  meta = with stdenv.lib; {
+    description = "LASH Audio Session Handler";
+    longDescription = ''
+      session management system for GNU/Linux audio applications
+    '';
+    homepage = http://www.nongnu.org/lash;
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.goibhniu ];
+  };
+}

Added: nixpkgs/trunk/pkgs/applications/audio/lash/socket.patch
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/applications/audio/lash/socket.patch     Sat Apr 23 
00:22:40 2011        (r26926)
@@ -0,0 +1,16 @@
+Via http://bugs.gentoo.org/show_bug.cgi?id=229603
+
+--- lash-0.5.4/liblash/socket.c        2008-06-26 15:20:44.227064193 +0200
++++ lash-0.5.4/liblash/socket.c        2008-06-26 15:21:18.245063129 +0200
+@@ -20,6 +20,11 @@ 
+ 
+ #define _POSIX_SOURCE /* addrinfo */
+ 
++#ifdef LASH_BUILD
++#define _GNU_SOURCE
++#include "config.h"
++#endif /* LASH_BUILD */
++
+ #include <stdint.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Fri Apr 22 23:00:55 
2011        (r26925)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sat Apr 23 00:22:40 
2011        (r26926)
@@ -6438,6 +6438,10 @@
 
   larswm = callPackage ../applications/window-managers/larswm { };
 
+  lash = callPackage ../applications/audio/lash {
+    inherit (gtkLibs) gtk;
+  };
+
   ladspaH = callPackage ../applications/audio/ladspa-plugins/ladspah.nix { };
 
   ladspaPlugins = callPackage ../applications/audio/ladspa-plugins {
_______________________________________________
nix-commits mailing list
nix-comm...@cs.uu.nl
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to