1 { lib, stdenv, fetchFromGitHub, alsa-lib, cmake, pkg-config, glib
2 , tracingSupport ? true, logToStderr ? true }:
4 let oz = x: if x then "1" else "0"; in
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "1p6fh6ah5v3qz7dxhcsixx38bxg44ypbim4m03bxk3ls5i9xslmn";
17 nativeBuildInputs = [ cmake pkg-config ];
19 buildInputs = [ alsa-lib glib ];
22 "-DWITH_TRACE=${oz tracingSupport}"
23 "-DLOG_TO_STDERR=${oz logToStderr}"
27 description = "PulseAudio emulation for ALSA";
28 homepage = "https://github.com/i-rinat/apulse";
29 license = licenses.mit;
30 platforms = platforms.linux;
31 maintainers = [ maintainers.jagajaga ];
32 mainProgram = "apulse";