ipmitool: add enterprise-numbers file

This commit is contained in:
Tobias Poschwatta 2023-03-12 12:12:56 +01:00
parent 8009798849
commit 18f5a88386

View file

@ -1,6 +1,13 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook, openssl, readline }:
{ stdenv, lib, fetchFromGitHub, autoreconfHook, openssl, readline, fetchurl }:
stdenv.mkDerivation rec {
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 {
pname = "ipmitool";
version = "1.8.19";
@ -16,7 +23,8 @@ stdenv.mkDerivation rec {
postPatch = ''
substituteInPlace configure.ac \
--replace 'AC_MSG_WARN([** Neither wget nor curl could be found.])' 'AM_CONDITIONAL([DOWNLOAD], [false])'
--replace 'AC_MSG_WARN([** Neither wget nor curl could be found.])' 'AM_CONDITIONAL([DOWNLOAD], [true])'
cp ${iana-enterprise-numbers} enterprise-numbers
'';
meta = with lib; {