Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, pkg-config, glib, libpulseaudio }: 2 3with lib; 4 5stdenv.mkDerivation rec { 6 pname = "libcardiacarrest"; 7 version = "12.2.8"; # <PA API version>.<version> 8 9 src = fetchFromGitHub { 10 owner = "oxij"; 11 repo = "libcardiacarrest"; 12 rev = "d89639f5b2d298cf74af26880f5ebf50e645166d"; 13 sha256 = "0vrigwcw3g8zknqyznv6y3437ahn1w00gv3d303smmygr0p8bd94"; 14 }; 15 16 outputs = [ "out" "dev" ]; 17 18 nativeBuildInputs = [ pkg-config ]; 19 20 buildInputs = [ glib ]; 21 22 makeFlags = [ "PREFIX=$(out)" ]; 23 24 postInstall = '' 25 moveToOutput $out/include $dev 26 moveToOutput $out/lib/pkgconfig $dev 27 moveToOutput $out/lib/cmake $dev 28 ''; 29 30 meta = src.meta // { 31 description = "A trivial implementation of libpulse PulseAudio library API"; 32 longDescription = '' 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. 36 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 42 JACK). 43 ''; 44 license = libpulseaudio.meta.license; # "same as PA headers" 45 maintainers = [ maintainers.oxij ]; # also the author 46 }; 47 48}