28 lines
689 B
Nix
28 lines
689 B
Nix
{ stdenv, fetchurl, libogg, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libvorbis-1.3.5";
|
|
|
|
src = fetchurl {
|
|
url = "http://downloads.xiph.org/releases/vorbis/${name}.tar.xz";
|
|
sha256 = "1lg1n3a6r41492r7in0fpvzc7909mc5ir9z0gd3qh2pz4yalmyal";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ libogg ];
|
|
|
|
doCheck = true;
|
|
|
|
# Fix header reference
|
|
postInstall = ''
|
|
sed -i $out/include/vorbis/codec.h \
|
|
-e 's,#include <ogg/ogg.h>,#include "${libogg}/include/ogg/ogg.h",g'
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://xiph.org/vorbis/;
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.emery ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|