python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / misc / apulse / default.nix
blob95beb8bcdf3f82baddaab17010f93361d3431b2d
1 { lib, stdenv, fetchFromGitHub, alsa-lib, cmake, pkg-config, glib
2 , tracingSupport ? true, logToStderr ? true }:
4 let oz = x: if x then "1" else "0"; in
6 stdenv.mkDerivation rec {
7   pname = "apulse";
8   version = "0.1.13";
10   src = fetchFromGitHub {
11     owner = "i-rinat";
12     repo = pname;
13     rev = "v${version}";
14     sha256 = "1p6fh6ah5v3qz7dxhcsixx38bxg44ypbim4m03bxk3ls5i9xslmn";
15   };
17   nativeBuildInputs = [ cmake pkg-config ];
19   buildInputs = [ alsa-lib glib ];
21   cmakeFlags = [
22     "-DWITH_TRACE=${oz tracingSupport}"
23     "-DLOG_TO_STDERR=${oz logToStderr}"
24   ];
26   meta = with lib; {
27     description = "PulseAudio emulation for ALSA";
28     homepage = "https://github.com/i-rinat/apulse";
29     license = licenses.mit;
30     platforms = platforms.linux;
31     maintainers = [ maintainers.jagajaga ];
32   };