2010-02-03 13:47:31 +01:00
|
|
|
{ fetchurl, stdenv, openssl, static ? false }:
|
2010-01-19 16:58:19 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
pkgname = "ipmitool";
|
2010-02-03 13:47:23 +01:00
|
|
|
version = "1.8.11";
|
2010-01-19 16:58:19 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pkgname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${pkgname}/${pkgname}-${version}.tar.gz";
|
2010-02-03 13:47:23 +01:00
|
|
|
sha256 = "5612f4835d89a6f2cede588eef978a05d63435cf2646256300d9785d8020a13e";
|
2010-01-19 16:58:19 +01:00
|
|
|
};
|
|
|
|
|
2010-01-19 17:21:40 +01:00
|
|
|
buildInputs = [ openssl ];
|
2010-02-03 13:47:31 +01:00
|
|
|
dontDisableStatic = static;
|
|
|
|
configureFlags = if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared";
|
|
|
|
makeFlags = if static then "AM_LDFLAGS=-all-static" else "";
|
2010-01-19 16:58:19 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''Command-line interface to IPMI-enabled devices'';
|
|
|
|
license = "BSD";
|
|
|
|
homepage = "http://ipmitool.sourceforge.net";
|
|
|
|
};
|
|
|
|
}
|