2010-02-03 12:47:31 +00:00
|
|
|
{ fetchurl, stdenv, openssl, static ? false }:
|
2010-01-19 15:58:19 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
pkgname = "ipmitool";
|
2014-10-07 20:15:12 +01:00
|
|
|
version = "1.8.14";
|
2010-01-19 15:58:19 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pkgname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${pkgname}/${pkgname}-${version}.tar.gz";
|
2014-10-07 20:15:12 +01:00
|
|
|
sha256 = "1avlb0lwqncd28hp6p5w3rkcnhgy84rgv1jdgkyy0gzqhx2wx6zy";
|
2010-01-19 15:58:19 +00:00
|
|
|
};
|
|
|
|
|
2010-01-19 16:21:40 +00:00
|
|
|
buildInputs = [ openssl ];
|
2010-12-06 18:01:57 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=(
|
|
|
|
--infodir=$out/share/info
|
|
|
|
--mandir=$out/share/man
|
|
|
|
${if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared"}
|
|
|
|
)
|
|
|
|
'';
|
2010-02-03 12:47:31 +00:00
|
|
|
makeFlags = if static then "AM_LDFLAGS=-all-static" else "";
|
2010-12-06 18:01:57 +00:00
|
|
|
dontDisableStatic = static;
|
2010-01-19 15:58:19 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = ''Command-line interface to IPMI-enabled devices'';
|
|
|
|
license = "BSD";
|
|
|
|
homepage = "http://ipmitool.sourceforge.net";
|
2010-12-06 18:01:57 +00:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-01-19 15:58:19 +00:00
|
|
|
};
|
|
|
|
}
|