nixpkgs/pkgs/development/libraries/libvorbis/default.nix

29 lines
689 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libogg, pkgconfig }:
2014-09-24 15:07:18 +02:00
stdenv.mkDerivation rec {
2015-03-26 00:02:24 +01:00
name = "libvorbis-1.3.5";
2014-09-24 15:07:18 +02:00
src = fetchurl {
url = "http://downloads.xiph.org/releases/vorbis/${name}.tar.xz";
2015-03-26 00:02:24 +01:00
sha256 = "1lg1n3a6r41492r7in0fpvzc7909mc5ir9z0gd3qh2pz4yalmyal";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libogg ];
doCheck = true;
2015-05-02 23:12:53 +02:00
# 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;
};
}