pkgs/tools/system/ipmitool: added optional support for generating statically linked binaries

svn path=/nixpkgs/trunk/; revision=19778
This commit is contained in:
Peter Simons 2010-02-03 12:47:31 +00:00
parent c261d7a847
commit 715c59b281
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, openssl }:
{ fetchurl, stdenv, openssl, static ? false }:
let
pkgname = "ipmitool";
@ -13,6 +13,9 @@ stdenv.mkDerivation {
};
buildInputs = [ openssl ];
dontDisableStatic = static;
configureFlags = if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared";
makeFlags = if static then "AM_LDFLAGS=-all-static" else "";
meta = {
description = ''Command-line interface to IPMI-enabled devices'';

View File

@ -909,6 +909,7 @@ let
ipmitool = import ../tools/system/ipmitool {
inherit fetchurl stdenv openssl;
static = getPkgConfig "ipmitool" "static" false;
};
jdiskreport = import ../tools/misc/jdiskreport {