From 9bd9e32aa859d58f6d2dafa51ef53ac99710bab3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 6 Dec 2010 18:01:57 +0000 Subject: [PATCH] pkgs/tools/system/ipmitool: move --mandir and --infodir to standard locations svn path=/nixpkgs/trunk/; revision=25014 --- pkgs/tools/system/ipmitool/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/ipmitool/default.nix b/pkgs/tools/system/ipmitool/default.nix index 0a4c4b01ef6f..2b66bb2e081b 100644 --- a/pkgs/tools/system/ipmitool/default.nix +++ b/pkgs/tools/system/ipmitool/default.nix @@ -13,13 +13,23 @@ stdenv.mkDerivation { }; buildInputs = [ openssl ]; - dontDisableStatic = static; - configureFlags = if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared"; + + preConfigure = '' + configureFlagsArray=( + --infodir=$out/share/info + --mandir=$out/share/man + ${if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared"} + ) + ''; makeFlags = if static then "AM_LDFLAGS=-all-static" else ""; + dontDisableStatic = static; meta = { description = ''Command-line interface to IPMI-enabled devices''; license = "BSD"; homepage = "http://ipmitool.sourceforge.net"; + + platforms = stdenv.lib.platforms.unix; + maintainers = [ stdenv.lib.maintainers.simons ]; }; }