Split a few libraries into multiple outputs
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libogg-1.3.0";
|
||||
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://downloads.xiph.org/releases/ogg/${name}.tar.xz";
|
||||
sha256 = "0jy79ffkl34vycnwfsj4svqsdg1lwy2l1rr49y8r4d44kh12a5r3";
|
||||
@@ -10,6 +10,21 @@ stdenv.mkDerivation rec {
|
||||
|
||||
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/;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user