mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
32 lines
683 B
Nix
32 lines
683 B
Nix
{ 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/;
|
|
};
|
|
}
|