diff options
author | Peter Simons <simons@cryp.to> | 2010-02-03 12:47:31 +0000 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2010-02-03 12:47:31 +0000 |
commit | 715c59b28166122786df14dbde157e67c2fbf466 (patch) | |
tree | 89dc11722618562f228390ebf76726018bd95970 /pkgs/tools/system/ipmitool/default.nix | |
parent | c261d7a8472d003a6dd6bcf331cab609311e2383 (diff) | |
download | nixpkgs-715c59b28166122786df14dbde157e67c2fbf466.tar nixpkgs-715c59b28166122786df14dbde157e67c2fbf466.tar.gz nixpkgs-715c59b28166122786df14dbde157e67c2fbf466.tar.bz2 nixpkgs-715c59b28166122786df14dbde157e67c2fbf466.tar.lz nixpkgs-715c59b28166122786df14dbde157e67c2fbf466.tar.xz nixpkgs-715c59b28166122786df14dbde157e67c2fbf466.tar.zst nixpkgs-715c59b28166122786df14dbde157e67c2fbf466.zip |
pkgs/tools/system/ipmitool: added optional support for generating statically linked binaries
svn path=/nixpkgs/trunk/; revision=19778
Diffstat (limited to 'pkgs/tools/system/ipmitool/default.nix')
-rw-r--r-- | pkgs/tools/system/ipmitool/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/system/ipmitool/default.nix b/pkgs/tools/system/ipmitool/default.nix index d4bc1788874..0a4c4b01ef6 100644 --- a/pkgs/tools/system/ipmitool/default.nix +++ b/pkgs/tools/system/ipmitool/default.nix @@ -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''; |