2023-03-12 11:12:56 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, autoreconfHook, openssl, readline, fetchurl }:
|
2010-01-19 15:58:19 +00:00
|
|
|
|
2023-03-12 11:12:56 +00:00
|
|
|
let
|
|
|
|
|
|
|
|
iana-enterprise-numbers = fetchurl {
|
|
|
|
url = "https://web.archive.org/web/20230312103209id_/https://www.iana.org/assignments/enterprise-numbers.txt";
|
|
|
|
sha256 = "sha256-huFWygMEylBKBMLV16UE6xLWP6Aw1FGYk5h1q5CErUs=";
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2021-07-27 14:21:24 +00:00
|
|
|
pname = "ipmitool";
|
2022-11-14 11:41:03 +00:00
|
|
|
version = "1.8.19";
|
2010-01-19 15:58:19 +00:00
|
|
|
|
2022-11-14 11:41:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "IPMITOOL_${lib.replaceStrings ["."] ["_"] version}";
|
|
|
|
hash = "sha256-VVYvuldRIHhaIUibed9cLX8Avfy760fdBLNO8MoUKCk=";
|
2010-01-19 15:58:19 +00:00
|
|
|
};
|
|
|
|
|
2022-11-14 11:41:03 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ openssl readline ];
|
2020-02-24 22:08:00 +00:00
|
|
|
|
2022-11-14 11:41:03 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
2023-03-12 11:12:56 +00:00
|
|
|
--replace 'AC_MSG_WARN([** Neither wget nor curl could be found.])' 'AM_CONDITIONAL([DOWNLOAD], [true])'
|
|
|
|
cp ${iana-enterprise-numbers} enterprise-numbers
|
2022-11-14 11:41:03 +00:00
|
|
|
'';
|
2010-01-19 15:58:19 +00:00
|
|
|
|
2017-06-20 00:43:36 +00:00
|
|
|
meta = with lib; {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "Command-line interface to IPMI-enabled devices";
|
2024-08-12 17:46:35 +00:00
|
|
|
mainProgram = "ipmitool";
|
2017-06-20 00:43:36 +00:00
|
|
|
license = licenses.bsd3;
|
2022-11-14 11:41:03 +00:00
|
|
|
homepage = "https://github.com/ipmitool/ipmitool";
|
2020-03-01 13:18:36 +00:00
|
|
|
platforms = platforms.unix;
|
2017-06-20 00:43:36 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2010-01-19 15:58:19 +00:00
|
|
|
};
|
|
|
|
}
|