Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 30 lines 847 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake, speexdsp, pkg-config }: 2 3stdenv.mkDerivation rec { 4 version = "1.2.6"; 5 pname = "libebur128"; 6 7 src = fetchFromGitHub { 8 owner = "jiixyj"; 9 repo = "libebur128"; 10 rev = "v${version}"; 11 sha256 = "sha256-UKO2k+kKH/dwt2xfaYMrH/GXjEkIrnxh1kGG/3P5d3Y="; 12 }; 13 14 nativeBuildInputs = [ cmake pkg-config ]; 15 buildInputs = [ speexdsp ]; 16 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 ''; 22 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 }; 30}