python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libebur128 / default.nix
blobc91cb23189f706d0a434c0ebfe3183e5c27bd849
1 { lib, stdenv, fetchFromGitHub, cmake, speexdsp, pkg-config }:
3 stdenv.mkDerivation rec {
4   version = "1.2.6";
5   pname = "libebur128";
7   src = fetchFromGitHub {
8     owner = "jiixyj";
9     repo = "libebur128";
10     rev = "v${version}";
11     sha256 = "sha256-UKO2k+kKH/dwt2xfaYMrH/GXjEkIrnxh1kGG/3P5d3Y=";
12   };
14   nativeBuildInputs = [ cmake pkg-config ];
15   buildInputs = [ speexdsp ];
17   # https://github.com/jiixyj/libebur128/issues/121
18   postPatch = ''
19     substituteInPlace ebur128/libebur128.pc.cmake \
20       --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
21   '';
23   meta = with lib; {
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;
29   };