2018-02-24 20:56:14 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, glib, libpulseaudio }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcardiacarrest-${version}";
|
2018-07-18 20:06:26 +01:00
|
|
|
version = "12.1-6"; # <PA API version>-<version>
|
2018-02-24 20:56:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oxij";
|
|
|
|
repo = "libcardiacarrest";
|
2018-07-18 20:06:26 +01:00
|
|
|
rev = "4df92b6cc66c7f9fe947dd9bbf4802cf20fe63a2";
|
|
|
|
sha256 = "0zfjn4nvcx8r4f6czcix5b9nsszhhhlbypcwqzi4ddhazl1gyfm6";
|
2018-02-24 20:56:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
moveToOutput $out/include $dev
|
|
|
|
moveToOutput $out/lib/pkgconfig $dev
|
|
|
|
moveToOutput $out/lib/cmake $dev
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = src.meta // {
|
|
|
|
description = "A trivial implementation of libpulse PulseAudio library API";
|
|
|
|
longDescription = ''
|
|
|
|
libcardiacarrest is a trivial implementation of libpulse
|
|
|
|
PulseAudio library API that unconditionally (but gracefully)
|
|
|
|
fails to connect to the PulseAudio daemon and does nothing else.
|
|
|
|
|
|
|
|
apulse and pressureaudio (which uses apulse internally) are an
|
|
|
|
inspiration for this but unlike those two projects
|
|
|
|
libcardiacarrest is not an emulation layer, all it does is it
|
|
|
|
gracefully fails to provide the requested PulseAudio service
|
|
|
|
hoping the application would try something else (e.g. ALSA or
|
|
|
|
JACK).
|
|
|
|
'';
|
|
|
|
license = libpulseaudio.meta.license; # "same as PA headers"
|
|
|
|
maintainers = [ maintainers.oxij ]; # also the author
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|