1{
2 lib,
3 stdenv,
4 fetchurl,
5 libX11,
6 libXft,
7 libclthreads,
8 libclxclient,
9 libjack2,
10 libpng,
11 libsndfile,
12 zita-resampler,
13}:
14
15stdenv.mkDerivation rec {
16 pname = "ebumeter";
17 version = "0.5.1";
18
19 src = fetchurl {
20 url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.xz";
21 hash = "sha256-U2ZpNfvy+X1RdA9Q4gvFYzAxlgc6kYjJpQ/0sEX0A4I=";
22 };
23
24 buildInputs = [
25 libX11
26 libXft
27 libclthreads
28 libclxclient
29 libjack2
30 libpng
31 libsndfile
32 zita-resampler
33 ];
34
35 preConfigure = ''
36 cd source
37 '';
38
39 makeFlags = [ "PREFIX=$(out)" ];
40
41 enableParallelBuilding = true;
42
43 meta = with lib; {
44 description = "Level metering according to the EBU R-128 recommendation";
45 homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/index.html";
46 license = licenses.gpl2Plus;
47 maintainers = with maintainers; [ orivej ];
48 platforms = platforms.linux;
49 };
50}