fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, lib, fetchurl, fetchpatch, pkgconfig, libtool
2, gtk ? null
3, libpulseaudio, gst_all_1, libvorbis, libcap
4, withAlsa ? stdenv.isLinux, alsaLib }:
5
6stdenv.mkDerivation rec {
7 name = "libcanberra-0.30";
8
9 src = fetchurl {
10 url = "http://0pointer.de/lennart/projects/libcanberra/${name}.tar.xz";
11 sha256 = "0wps39h8rx2b00vyvkia5j40fkak3dpipp1kzilqla0cgvk73dn2";
12 };
13
14 nativeBuildInputs = [ pkgconfig libtool ];
15 buildInputs = [
16 libpulseaudio libvorbis gtk
17 ] ++ (with gst_all_1; [ gstreamer gst-plugins-base ])
18 ++ lib.optional stdenv.isLinux libcap
19 ++ lib.optional withAlsa alsaLib;
20
21 configureFlags = [ "--disable-oss" ];
22
23 patchFlags = "-p0";
24 patches = stdenv.lib.optional stdenv.isDarwin
25 (fetchpatch {
26 url = "https://raw.githubusercontent.com/macports/macports-ports/master/audio/libcanberra/files/patch-configure.diff";
27 sha256 = "1f7h7ifpqvbfhqygn1b7klvwi80zmpv3538vbmq7ql7bkf1q8h31";
28 });
29
30 postInstall = ''
31 for f in $out/lib/*.la; do
32 sed 's|-lltdl|-L${libtool.lib}/lib -lltdl|' -i $f
33 done
34 '';
35
36 passthru = {
37 gtkModule = "/lib/gtk-2.0/";
38 };
39
40 meta = {
41 description = "An implementation of the XDG Sound Theme and Name Specifications";
42
43 longDescription = ''
44 libcanberra is an implementation of the XDG Sound Theme and Name
45 Specifications, for generating event sounds on free desktops
46 such as GNOME. It comes with several backends (ALSA,
47 PulseAudio, OSS, GStreamer, null) and is designed to be
48 portable.
49 '';
50
51 homepage = http://0pointer.de/lennart/projects/libcanberra/;
52
53 license = stdenv.lib.licenses.lgpl2Plus;
54
55 maintainers = [ ];
56 platforms = stdenv.lib.platforms.unix;
57 };
58}