Merge pull request #220508 from posch/ipmitool-1

ipmitool: add enterprise-numbers file
This commit is contained in:
Nick Cao
2023-03-13 09:46:20 +08:00
committed by GitHub
+11 -3
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; {