Author: simons
Date: Mon Dec  6 18:01:57 2010
New Revision: 25014
URL: https://svn.nixos.org/websvn/nix/?rev=25014&sc=1

Log:
pkgs/tools/system/ipmitool: move --mandir and --infodir to standard locations

Modified:
   nixpkgs/trunk/pkgs/tools/system/ipmitool/default.nix

Modified: nixpkgs/trunk/pkgs/tools/system/ipmitool/default.nix
==============================================================================
--- nixpkgs/trunk/pkgs/tools/system/ipmitool/default.nix        Mon Dec  6 
18:01:51 2010        (r25013)
+++ nixpkgs/trunk/pkgs/tools/system/ipmitool/default.nix        Mon Dec  6 
18:01:57 2010        (r25014)
@@ -13,13 +13,23 @@
   };
 
   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 ];
   };
 }
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to