mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
9bd9e32aa8
svn path=/nixpkgs/trunk/; revision=25014
36 lines
936 B
Nix
36 lines
936 B
Nix
{ fetchurl, stdenv, openssl, static ? false }:
|
|
|
|
let
|
|
pkgname = "ipmitool";
|
|
version = "1.8.11";
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "${pkgname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/${pkgname}/${pkgname}-${version}.tar.gz";
|
|
sha256 = "5612f4835d89a6f2cede588eef978a05d63435cf2646256300d9785d8020a13e";
|
|
};
|
|
|
|
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 = "BSD";
|
|
homepage = "http://ipmitool.sourceforge.net";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
};
|
|
}
|