From b3e902c1a999ab084d34de3584c3a71d1e34c130 Mon Sep 17 00:00:00 2001 From: Cillian de Roiste Date: Sat, 23 Apr 2011 00:22:40 +0000 Subject: [PATCH] Adding lash, session management system for GNU/Linux audio applications svn path=/nixpkgs/trunk/; revision=26926 --- pkgs/applications/audio/lash/default.nix | 34 +++++++++++++++++++++++ pkgs/applications/audio/lash/socket.patch | 16 +++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 3 files changed, 54 insertions(+) create mode 100644 pkgs/applications/audio/lash/default.nix create mode 100644 pkgs/applications/audio/lash/socket.patch diff --git a/pkgs/applications/audio/lash/default.nix b/pkgs/applications/audio/lash/default.nix new file mode 100644 index 000000000000..f0f9e491c37c --- /dev/null +++ b/pkgs/applications/audio/lash/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/applications/audio/lash/socket.patch b/pkgs/applications/audio/lash/socket.patch new file mode 100644 index 000000000000..c28259214443 --- /dev/null +++ b/pkgs/applications/audio/lash/socket.patch @@ -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 + #include + #include diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9bdd2f838d7d..4bc71422e7e6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6438,6 +6438,10 @@ let 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 {