Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 878 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 alsa-lib, 6 cmake, 7 pkg-config, 8 glib, 9 tracingSupport ? true, 10 logToStderr ? true, 11}: 12 13let 14 oz = x: if x then "1" else "0"; 15in 16 17stdenv.mkDerivation rec { 18 pname = "apulse"; 19 version = "0.1.13"; 20 21 src = fetchFromGitHub { 22 owner = "i-rinat"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "1p6fh6ah5v3qz7dxhcsixx38bxg44ypbim4m03bxk3ls5i9xslmn"; 26 }; 27 28 nativeBuildInputs = [ 29 cmake 30 pkg-config 31 ]; 32 33 buildInputs = [ 34 alsa-lib 35 glib 36 ]; 37 38 cmakeFlags = [ 39 "-DWITH_TRACE=${oz tracingSupport}" 40 "-DLOG_TO_STDERR=${oz logToStderr}" 41 ]; 42 43 meta = with lib; { 44 description = "PulseAudio emulation for ALSA"; 45 homepage = "https://github.com/i-rinat/apulse"; 46 license = licenses.mit; 47 platforms = platforms.linux; 48 maintainers = [ maintainers.jagajaga ]; 49 mainProgram = "apulse"; 50 }; 51}