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

32 lines
683 B
Nix
Raw Normal View History

{ stdenv, fetchurl, xz }:
stdenv.mkDerivation rec {
name = "libogg-1.3.0";
src = fetchurl {
url = "http://downloads.xiph.org/releases/ogg/${name}.tar.xz";
sha256 = "0jy79ffkl34vycnwfsj4svqsdg1lwy2l1rr49y8r4d44kh12a5r3";
};
buildNativeInputs = [ xz ];
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
''; # */
meta = {
homepage = http://xiph.org/ogg/;
};
}