at 23.05-pre 33 lines 810 B view raw
1{ lib, stdenv, fetchFromGitHub, alsa-lib, cmake, pkg-config, glib 2, tracingSupport ? true, logToStderr ? true }: 3 4let oz = x: if x then "1" else "0"; in 5 6stdenv.mkDerivation rec { 7 pname = "apulse"; 8 version = "0.1.13"; 9 10 src = fetchFromGitHub { 11 owner = "i-rinat"; 12 repo = pname; 13 rev = "v${version}"; 14 sha256 = "1p6fh6ah5v3qz7dxhcsixx38bxg44ypbim4m03bxk3ls5i9xslmn"; 15 }; 16 17 nativeBuildInputs = [ cmake pkg-config ]; 18 19 buildInputs = [ alsa-lib glib ]; 20 21 cmakeFlags = [ 22 "-DWITH_TRACE=${oz tracingSupport}" 23 "-DLOG_TO_STDERR=${oz logToStderr}" 24 ]; 25 26 meta = with lib; { 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 }; 33}