Split a few libraries into multiple outputs
This commit is contained in:
parent
dbe524fe3f
commit
fcf88305cc
@ -18,6 +18,23 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
outputs = [ "dev" "out" "bin" "doc" ];
|
||||||
|
|
||||||
|
configureFlags = [ "--bindir=$(bin)/bin" "--includedir=$(dev)/include" "--mandir=$(bin)/share/man" ];
|
||||||
|
|
||||||
|
installFlags = [ "pkgconfigdir=$(dev)/lib/pkgconfig m4datadir=$(dev)/share/aclocal" ];
|
||||||
|
|
||||||
|
postInstall =
|
||||||
|
''
|
||||||
|
if [ -e $out/share/doc ]; then
|
||||||
|
mkdir -p $doc/share/doc
|
||||||
|
mv $out/share/doc/* $doc/share/doc
|
||||||
|
rmdir $out/share/doc
|
||||||
|
fi
|
||||||
|
''; # */
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://flac.sourceforge.net;
|
homepage = http://flac.sourceforge.net;
|
||||||
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
|
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
|
||||||
|
@ -10,6 +10,21 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildNativeInputs = [ xz ];
|
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 = {
|
meta = {
|
||||||
homepage = http://xiph.org/ogg/;
|
homepage = http://xiph.org/ogg/;
|
||||||
};
|
};
|
||||||
|
@ -10,6 +10,23 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [pkgconfig flac libogg libvorbis];
|
buildInputs = [pkgconfig flac libogg libvorbis];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
outputs = [ "dev" "out" "bin" "doc" ];
|
||||||
|
|
||||||
|
configureFlags = [ "--bindir=$(bin)/bin" "--includedir=$(dev)/include" "--mandir=$(bin)/share/man" ];
|
||||||
|
|
||||||
|
installFlags = [ "pkgconfigdir=$(dev)/lib/pkgconfig m4datadir=$(dev)/share/aclocal" ];
|
||||||
|
|
||||||
|
postInstall =
|
||||||
|
''
|
||||||
|
if [ -e $out/share/doc ]; then
|
||||||
|
mkdir -p $doc/share/doc
|
||||||
|
mv $out/share/doc/* $doc/share/doc
|
||||||
|
rmdir $out/share/doc
|
||||||
|
fi
|
||||||
|
''; # */
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Libsndfile, a C library for reading and writing files containing sampled sound";
|
description = "Libsndfile, a C library for reading and writing files containing sampled sound";
|
||||||
|
|
||||||
|
@ -11,6 +11,22 @@ stdenv.mkDerivation rec {
|
|||||||
buildNativeInputs = [ xz ];
|
buildNativeInputs = [ xz ];
|
||||||
propagatedBuildInputs = [ libogg ];
|
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 = {
|
meta = {
|
||||||
homepage = http://xiph.org/vorbis/;
|
homepage = http://xiph.org/vorbis/;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user