Abstract common multiple output handling into a function

This commit is contained in:
Eelco Dolstra
2012-08-23 15:42:22 -04:00
parent fcf88305cc
commit b96ab17658
6 changed files with 50 additions and 62 deletions
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, libogg, xz }:
{ stdenv, fetchurl, multipleOutputs, libogg, xz }:
stdenv.mkDerivation rec {
multipleOutputs rec {
name = "libvorbis-1.3.3";
src = fetchurl {
@@ -13,20 +13,6 @@ stdenv.mkDerivation rec {
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/;
};