2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, alsaLib, gtk2, libjack2, libuuid, libxml2
|
2021-02-05 17:12:51 +00:00
|
|
|
, makeWrapper, pkg-config, readline }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
assert libuuid != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lash";
|
|
|
|
version = "0.5.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://savannah/lash/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "05kc4brcx8mncai0rj2gz4s4bsrsy9q8xlnaddf75i0m8jl7snhh";
|
|
|
|
};
|
|
|
|
|
|
|
|
# http://permalink.gmane.org/gmane.linux.redhat.fedora.extras.cvs/822346
|
|
|
|
patches = [ ./socket.patch ./gcc-47.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ alsaLib gtk2 libjack2 libxml2 makeWrapper
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config readline ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ libuuid ];
|
|
|
|
NIX_LDFLAGS = "-lm -lpthread -luuid";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for i in lash_control lash_panel
|
|
|
|
do wrapProgram "$out/bin/$i" --prefix LD_LIBRARY_PATH ":" "${libuuid}/lib"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Linux Audio Session Handler";
|
|
|
|
longDescription = ''
|
|
|
|
Session management system for GNU/Linux audio applications.
|
|
|
|
'';
|
|
|
|
homepage = "https://www.nongnu.org/lash";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|