mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
36 lines
842 B
Nix
36 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 ];
|
|
};
|
|
}
|