From b96ab17658b1aec5654cc88f8e67adb544900c82 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 23 Aug 2012 15:42:22 -0400 Subject: Abstract common multiple output handling into a function --- pkgs/applications/audio/flac/default.nix | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'pkgs/applications/audio/flac') diff --git a/pkgs/applications/audio/flac/default.nix b/pkgs/applications/audio/flac/default.nix index 3f00d6b834ed4..21025b27b2498 100644 --- a/pkgs/applications/audio/flac/default.nix +++ b/pkgs/applications/audio/flac/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchurl, libogg }: +{ stdenv, fetchurl, multipleOutputs, libogg }: -stdenv.mkDerivation rec { +multipleOutputs rec { name = "flac-1.2.1"; src = fetchurl { @@ -22,19 +22,6 @@ stdenv.mkDerivation rec { 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 = { homepage = http://flac.sourceforge.net; description = "Library and tools for encoding and decoding the FLAC lossless audio file format"; -- cgit 1.4.1