depot/third_party/nixpkgs/pkgs/misc/apulse/default.nix
Default email 9a250f78df Project import generated by Copybara.
GitOrigin-RevId: 8536aeb4154f5458994080bc4cf542695c144739
2020-05-03 19:38:23 +02:00

35 lines
842 B
Nix

{ stdenv, fetchFromGitHub, alsaLib, cmake, pkgconfig, glib
, tracingSupport ? true, logToStderr ? true }:
let oz = x: if x then "1" else "0"; in
stdenv.mkDerivation rec {
pname = "apulse";
version = "0.1.13";
src = fetchFromGitHub {
owner = "i-rinat";
repo = pname;
rev = "v${version}";
sha256 = "1p6fh6ah5v3qz7dxhcsixx38bxg44ypbim4m03bxk3ls5i9xslmn";
};
enableParallelBuilding = true;
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ alsaLib glib ];
cmakeFlags = [
"-DWITH_TRACE=${oz tracingSupport}"
"-DLOG_TO_STDERR=${oz logToStderr}"
];
meta = with stdenv.lib; {
description = "PulseAudio emulation for ALSA";
homepage = "https://github.com/i-rinat/apulse";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.jagajaga ];
};
}