1{ stdenv, fetchurl, pkgconfig, libtool, gtk ? null, libcap
2, alsaLib, libpulseaudio, gstreamer, gst-plugins-base, libvorbis }:
3
4stdenv.mkDerivation rec {
5 name = "libcanberra-0.30";
6
7 src = fetchurl {
8 url = "http://0pointer.de/lennart/projects/libcanberra/${name}.tar.xz";
9 sha256 = "0wps39h8rx2b00vyvkia5j40fkak3dpipp1kzilqla0cgvk73dn2";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [
14 libtool alsaLib libpulseaudio libvorbis gtk libcap
15 /*gstreamer gst-plugins-base*/ # ToDo: gstreamer not found (why?), add (g)udev?
16 ];
17
18 configureFlags = "--disable-oss";
19
20 postInstall = ''
21 for f in $out/lib/*.la; do
22 sed 's|-lltdl|-L${libtool.lib}/lib -lltdl|' -i $f
23 done
24 '';
25
26 passthru = {
27 gtkModule = "/lib/gtk-2.0/";
28 };
29
30 meta = {
31 description = "An implementation of the XDG Sound Theme and Name Specifications";
32
33 longDescription = ''
34 libcanberra is an implementation of the XDG Sound Theme and Name
35 Specifications, for generating event sounds on free desktops
36 such as GNOME. It comes with several backends (ALSA,
37 PulseAudio, OSS, GStreamer, null) and is designed to be
38 portable.
39 '';
40
41 homepage = http://0pointer.de/lennart/projects/libcanberra/;
42
43 license = stdenv.lib.licenses.lgpl2Plus;
44
45 maintainers = [ ];
46 platforms = stdenv.lib.platforms.gnu; # arbitrary choice
47 };
48}