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