1 { stdenv, lib, fetchFromGitHub, autoreconfHook, openssl, readline, fetchurl }:
5 iana-enterprise-numbers = fetchurl {
6 url = "https://web.archive.org/web/20230312103209id_/https://www.iana.org/assignments/enterprise-numbers.txt";
7 sha256 = "sha256-huFWygMEylBKBMLV16UE6xLWP6Aw1FGYk5h1q5CErUs=";
10 in stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
17 rev = "IPMITOOL_${lib.replaceStrings ["."] ["_"] version}";
18 hash = "sha256-VVYvuldRIHhaIUibed9cLX8Avfy760fdBLNO8MoUKCk=";
21 nativeBuildInputs = [ autoreconfHook ];
22 buildInputs = [ openssl readline ];
25 substituteInPlace configure.ac \
26 --replace 'AC_MSG_WARN([** Neither wget nor curl could be found.])' 'AM_CONDITIONAL([DOWNLOAD], [true])'
27 cp ${iana-enterprise-numbers} enterprise-numbers
31 description = "Command-line interface to IPMI-enabled devices";
32 mainProgram = "ipmitool";
33 license = licenses.bsd3;
34 homepage = "https://github.com/ipmitool/ipmitool";
35 platforms = platforms.unix;
36 maintainers = with maintainers; [ fpletz ];