nixpkgs-suyu/pkgs/tools/system/ipmitool/default.nix

36 lines
941 B
Nix
Raw Normal View History

{ fetchurl, stdenv, openssl, static ? false }:
let
pkgname = "ipmitool";
2015-01-27 13:35:09 +01:00
version = "1.8.15";
in
stdenv.mkDerivation {
name = "${pkgname}-${version}";
src = fetchurl {
url = "mirror://sourceforge/${pkgname}/${pkgname}-${version}.tar.gz";
2015-01-27 13:35:09 +01:00
sha256 = "0y6g8xg9p854n7xm3kds8m3d53jrsllnknp8lcr3jscf99j4x5ph";
};
buildInputs = [ openssl ];
preConfigure = ''
configureFlagsArray=(
--infodir=$out/share/info
--mandir=$out/share/man
${if static then "LDFLAGS=-static --enable-static --disable-shared" else "--enable-shared"}
)
'';
makeFlags = if static then "AM_LDFLAGS=-all-static" else "";
dontDisableStatic = static;
meta = {
description = ''Command-line interface to IPMI-enabled devices'';
license = stdenv.lib.licenses.bsd3;
homepage = http://ipmitool.sourceforge.net;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}