2012-02-08 19:54:16 +00:00
|
|
|
{ stdenv, fetchurl, xz }:
|
2005-01-19 21:48:45 +00:00
|
|
|
|
2010-08-01 14:33:43 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-02-08 19:54:16 +00:00
|
|
|
name = "libogg-1.3.0";
|
2012-08-23 19:01:00 +00:00
|
|
|
|
2005-01-19 21:48:45 +00:00
|
|
|
src = fetchurl {
|
2012-02-08 19:54:16 +00:00
|
|
|
url = "http://downloads.xiph.org/releases/ogg/${name}.tar.xz";
|
|
|
|
sha256 = "0jy79ffkl34vycnwfsj4svqsdg1lwy2l1rr49y8r4d44kh12a5r3";
|
2010-08-01 14:33:43 +00:00
|
|
|
};
|
|
|
|
|
2012-02-08 19:54:16 +00:00
|
|
|
buildNativeInputs = [ xz ];
|
|
|
|
|
2012-08-23 19:01:00 +00:00
|
|
|
outputs = [ "dev" "doc" "out" ];
|
|
|
|
|
|
|
|
configureFlags = [ "--includedir=$(dev)/include" ];
|
|
|
|
|
|
|
|
installFlags = [ "pkgconfigdir=$(dev)/lib/pkgconfig" ];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -p $doc/share/doc
|
|
|
|
mv $out/share/doc/* $doc/share/doc
|
|
|
|
|
|
|
|
mkdir -p $dev/nix-support
|
|
|
|
echo $out > $dev/nix-support/propagated-build-native-inputs
|
|
|
|
''; # */
|
|
|
|
|
2010-08-01 14:33:43 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://xiph.org/ogg/;
|
2005-01-19 21:48:45 +00:00
|
|
|
};
|
|
|
|
}
|