pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / misc / apulse / default.nix
blob00b53851b8297feb55fd293821846faf85be1735
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     mainProgram = "apulse";
33   };