Split a few libraries into multiple outputs
This commit is contained in:
@@ -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/;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user