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
+2 -15
View File
@@ -1,6 +1,6 @@
{ stdenv, fetchurl, xz }:
{ stdenv, fetchurl, multipleOutputs, xz }:
stdenv.mkDerivation rec {
multipleOutputs rec {
name = "libogg-1.3.0";
src = fetchurl {
@@ -12,19 +12,6 @@ stdenv.mkDerivation rec {
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/;
};