2021-06-10 03:57:09 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, alsa-lib, cmake, pkg-config, glib
|
2018-02-23 06:41:51 +00:00
|
|
|
, tracingSupport ? true, logToStderr ? true }:
|
|
|
|
|
|
|
|
let oz = x: if x then "1" else "0"; in
|
2014-10-12 12:09:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-21 04:26:22 +00:00
|
|
|
pname = "apulse";
|
2020-05-02 03:04:35 +01:00
|
|
|
version = "0.1.13";
|
2014-10-12 12:09:49 +01:00
|
|
|
|
2014-11-18 19:35:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "i-rinat";
|
2019-03-21 04:26:22 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-02 03:04:35 +01:00
|
|
|
sha256 = "1p6fh6ah5v3qz7dxhcsixx38bxg44ypbim4m03bxk3ls5i9xslmn";
|
2014-10-12 12:09:49 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-09-23 14:35:21 +01:00
|
|
|
|
2021-06-10 03:57:09 +01:00
|
|
|
buildInputs = [ alsa-lib glib ];
|
2014-10-12 12:09:49 +01:00
|
|
|
|
2018-02-23 06:41:51 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DWITH_TRACE=${oz tracingSupport}"
|
|
|
|
"-DLOG_TO_STDERR=${oz logToStderr}"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "PulseAudio emulation for ALSA";
|
2019-03-21 04:26:22 +00:00
|
|
|
homepage = "https://github.com/i-rinat/apulse";
|
2014-10-12 12:09:49 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.jagajaga ];
|
|
|
|
};
|
|
|
|
}
|