mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
pkgs/tools/system/ipmitool: added optional support for generating statically linked binaries
svn path=/nixpkgs/trunk/; revision=19778
This commit is contained in:
parent
c261d7a847
commit
715c59b281
@ -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'';
|
||||
|
@ -909,6 +909,7 @@ let
|
||||
|
||||
ipmitool = import ../tools/system/ipmitool {
|
||||
inherit fetchurl stdenv openssl;
|
||||
static = getPkgConfig "ipmitool" "static" false;
|
||||
};
|
||||
|
||||
jdiskreport = import ../tools/misc/jdiskreport {
|
||||
|
Loading…
Reference in New Issue
Block a user