2018-02-23 07:41:51 +01:00
|
|
|
{ stdenv, fetchFromGitHub, alsaLib, cmake, pkgconfig, glib
|
|
|
|
, tracingSupport ? true, logToStderr ? true }:
|
|
|
|
|
|
|
|
let oz = x: if x then "1" else "0"; in
|
2014-10-12 13:09:49 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "apulse-${version}";
|
2018-02-23 07:41:51 +01:00
|
|
|
version = "0.1.11.1";
|
2014-10-12 13:09:49 +02:00
|
|
|
|
2014-11-18 20:35:33 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "i-rinat";
|
|
|
|
repo = "apulse";
|
2018-02-23 07:41:51 +01:00
|
|
|
rev = "602b3a02b4b459d4652a3a0a836fab6f892d4080";
|
|
|
|
sha256 = "0yk9vgb4aws8xnkhdhgpxp5c0rri8yq61yxk85j99j8ax806i3r8";
|
2014-10-12 13:09:49 +02:00
|
|
|
};
|
|
|
|
|
2017-09-23 15:35:21 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ alsaLib glib ];
|
2014-10-12 13:09:49 +02:00
|
|
|
|
2018-02-23 07:41:51 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_TRACE=${oz tracingSupport}"
|
|
|
|
"-DLOG_TO_STDERR=${oz logToStderr}"
|
|
|
|
];
|
|
|
|
|
2014-10-12 13:09:49 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "PulseAudio emulation for ALSA";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/i-rinat/apulse;
|
2014-10-12 13:09:49 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.jagajaga ];
|
|
|
|
};
|
|
|
|
}
|