nixpkgs/pkgs/tools/system/ipmitool/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.1 KiB
Nix
Raw Normal View History

2023-03-12 11:12:56 +00:00
{ stdenv, lib, fetchFromGitHub, autoreconfHook, openssl, readline, fetchurl }:
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 {
pname = "ipmitool";
2022-11-14 11:41:03 +00:00
version = "1.8.19";
2022-11-14 11:41:03 +00:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "IPMITOOL_${lib.replaceStrings ["."] ["_"] version}";
hash = "sha256-VVYvuldRIHhaIUibed9cLX8Avfy760fdBLNO8MoUKCk=";
};
2022-11-14 11:41:03 +00:00
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ openssl readline ];
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
'';
2017-06-20 00:43:36 +00:00
meta = with lib; {
description = "Command-line interface to IPMI-enabled devices";
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 ];
};
}