Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 32 lines 929 B view raw
1{ lib, stdenv, fetchurl, libogg, pkg-config }: 2 3stdenv.mkDerivation rec { 4 pname = "libvorbis"; 5 version = "1.3.7"; 6 7 src = fetchurl { 8 url = "https://downloads.xiph.org/releases/vorbis/${pname}-${version}.tar.xz"; 9 sha256 = "0jwmf87x5sdis64rbv0l87mdpah1rbilkkxszipbzg128f9w8g5k"; 10 }; 11 12 outputs = [ "out" "dev" "doc" ]; 13 14 nativeBuildInputs = [ pkg-config ]; 15 propagatedBuildInputs = [ libogg ]; 16 17 doCheck = true; 18 19 # strip -mno-ieee-fp flag from configure and configure.ac when using 20 # clang as the flag is not recognized by the compiler 21 preConfigure = lib.optionalString (stdenv.cc.isClang or false) '' 22 sed s/\-mno\-ieee\-fp// -i {configure,configure.ac} 23 ''; 24 25 meta = with lib; { 26 description = "Vorbis audio compression reference implementation"; 27 homepage = "https://xiph.org/vorbis/"; 28 license = licenses.bsd3; 29 maintainers = [ maintainers.ehmry ]; 30 platforms = platforms.all; 31 }; 32}