diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libebur128')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libebur128/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libebur128/default.nix b/nixpkgs/pkgs/development/libraries/libebur128/default.nix new file mode 100644 index 000000000000..c91cb23189f7 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libebur128/default.nix @@ -0,0 +1,30 @@ +{ 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; + }; +} |