diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-23 15:01:00 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-23 15:01:00 -0400 |
commit | fcf88305cc8fc198f3c0b372557a4eaffe316a4f (patch) | |
tree | 67ff03447e1525bf09d1399f1d46a75906576d78 /pkgs/development/libraries/libvorbis | |
parent | dbe524fe3f1ccb0765d273e056a8ec3dd5c40e49 (diff) |
Split a few libraries into multiple outputs
Diffstat (limited to 'pkgs/development/libraries/libvorbis')
-rw-r--r-- | pkgs/development/libraries/libvorbis/default.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libvorbis/default.nix b/pkgs/development/libraries/libvorbis/default.nix index efb210d657629..945bba3d4ea17 100644 --- a/pkgs/development/libraries/libvorbis/default.nix +++ b/pkgs/development/libraries/libvorbis/default.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation rec { name = "libvorbis-1.3.3"; - + src = fetchurl { url = "http://downloads.xiph.org/releases/vorbis/${name}.tar.xz"; sha256 = "1gby6hapz9njx4l9g0pndyk4q83z5fgrgc30mfwfgx7bllspsk43"; @@ -11,6 +11,22 @@ stdenv.mkDerivation rec { buildNativeInputs = [ xz ]; propagatedBuildInputs = [ libogg ]; + outputs = [ "dev" "out" "doc" ]; + + 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 "$propagatedBuildNativeInputs $out" > "$dev/nix-support/propagated-build-native-inputs" + propagatedBuildNativeInputs= + ''; # */ + meta = { homepage = http://xiph.org/vorbis/; }; |