1 { lib, stdenv, fetchFromGitHub, cmake, speexdsp, pkg-config }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-UKO2k+kKH/dwt2xfaYMrH/GXjEkIrnxh1kGG/3P5d3Y=";
14 nativeBuildInputs = [ cmake pkg-config ];
15 buildInputs = [ speexdsp ];
17 # https://github.com/jiixyj/libebur128/issues/121
19 substituteInPlace ebur128/libebur128.pc.cmake \
20 --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
24 description = "Implementation of the EBU R128 loudness standard";
25 homepage = "https://github.com/jiixyj/libebur128";
26 license = licenses.mit;
27 maintainers = [ maintainers.andrewrk ];
28 platforms = platforms.unix;