01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
29 lines
854 B
Nix
29 lines
854 B
Nix
{ stdenv, lib, fetchFromGitHub, autoreconfHook, openssl, readline }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ipmitool";
|
|
version = "1.8.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "IPMITOOL_${lib.replaceStrings ["."] ["_"] version}";
|
|
hash = "sha256-VVYvuldRIHhaIUibed9cLX8Avfy760fdBLNO8MoUKCk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
buildInputs = [ openssl readline ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace configure.ac \
|
|
--replace 'AC_MSG_WARN([** Neither wget nor curl could be found.])' 'AM_CONDITIONAL([DOWNLOAD], [false])'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Command-line interface to IPMI-enabled devices";
|
|
license = licenses.bsd3;
|
|
homepage = "https://github.com/ipmitool/ipmitool";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
};
|
|
}
|