1 { lib, stdenv, fetchFromGitHub, pkg-config, glib, libpulseaudio }:
5 stdenv.mkDerivation rec {
6 pname = "libcardiacarrest";
7 version = "12.2.8"; # <PA API version>.<version>
9 src = fetchFromGitHub {
11 repo = "libcardiacarrest";
12 rev = "d89639f5b2d298cf74af26880f5ebf50e645166d";
13 sha256 = "0vrigwcw3g8zknqyznv6y3437ahn1w00gv3d303smmygr0p8bd94";
16 outputs = [ "out" "dev" ];
18 nativeBuildInputs = [ pkg-config ];
20 buildInputs = [ glib ];
22 makeFlags = [ "PREFIX=$(out)" ];
25 moveToOutput $out/include $dev
26 moveToOutput $out/lib/pkgconfig $dev
27 moveToOutput $out/lib/cmake $dev
31 description = "A trivial implementation of libpulse PulseAudio library API";
33 libcardiacarrest is a trivial implementation of libpulse
34 PulseAudio library API that unconditionally (but gracefully)
35 fails to connect to the PulseAudio daemon and does nothing else.
37 apulse and pressureaudio (which uses apulse internally) are an
38 inspiration for this but unlike those two projects
39 libcardiacarrest is not an emulation layer, all it does is it
40 gracefully fails to provide the requested PulseAudio service
41 hoping the application would try something else (e.g. ALSA or
44 license = libpulseaudio.meta.license; # "same as PA headers"
45 maintainers = [ maintainers.oxij ]; # also the author