5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
30 lines
847 B
Nix
30 lines
847 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, speexdsp, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.2.6";
|
|
pname = "libebur128";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jiixyj";
|
|
repo = "libebur128";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-UKO2k+kKH/dwt2xfaYMrH/GXjEkIrnxh1kGG/3P5d3Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ speexdsp ];
|
|
|
|
# https://github.com/jiixyj/libebur128/issues/121
|
|
postPatch = ''
|
|
substituteInPlace ebur128/libebur128.pc.cmake \
|
|
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of the EBU R128 loudness standard";
|
|
homepage = "https://github.com/jiixyj/libebur128";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.andrewrk ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|