summary refs log tree commit diff
path: root/pkgs/development/libraries/libsndfile
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-23 15:42:22 -0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-08-23 15:42:22 -0400
commitb96ab17658b1aec5654cc88f8e67adb544900c82 (patch)
treecb0adb8eb6570c5b9c0aeb3af5275ddee48cb844 /pkgs/development/libraries/libsndfile
parentfcf88305cc8fc198f3c0b372557a4eaffe316a4f (diff)
downloadnixpkgs-b96ab17658b1aec5654cc88f8e67adb544900c82.tar
nixpkgs-b96ab17658b1aec5654cc88f8e67adb544900c82.tar.gz
nixpkgs-b96ab17658b1aec5654cc88f8e67adb544900c82.tar.bz2
nixpkgs-b96ab17658b1aec5654cc88f8e67adb544900c82.tar.lz
nixpkgs-b96ab17658b1aec5654cc88f8e67adb544900c82.tar.xz
nixpkgs-b96ab17658b1aec5654cc88f8e67adb544900c82.tar.zst
nixpkgs-b96ab17658b1aec5654cc88f8e67adb544900c82.zip
Abstract common multiple output handling into a function
Diffstat (limited to 'pkgs/development/libraries/libsndfile')
-rw-r--r--pkgs/development/libraries/libsndfile/default.nix19
1 files changed, 3 insertions, 16 deletions
diff --git a/pkgs/development/libraries/libsndfile/default.nix b/pkgs/development/libraries/libsndfile/default.nix
index 3a9153120be..166e02668f0 100644
--- a/pkgs/development/libraries/libsndfile/default.nix
+++ b/pkgs/development/libraries/libsndfile/default.nix
@@ -1,6 +1,6 @@
-{stdenv, fetchurl, flac, libogg, libvorbis, pkgconfig }:
+{ stdenv, fetchurl, multipleOutputs, flac, libogg, libvorbis, pkgconfig }:
 
-stdenv.mkDerivation rec {
+multipleOutputs rec {
   name = "libsndfile-1.0.23";
 
   src = fetchurl {
@@ -8,25 +8,12 @@ stdenv.mkDerivation rec {
     sha256 = "0k9x4804gfh9d9zd4rm1v2izm8l716rzk4d6jlrjcf45b5sw7jal";
   };
 
-  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 = {
     description = "Libsndfile, a C library for reading and writing files containing sampled sound";