Files
nixpkgs/pkgs/by-name/ip/ipmitool/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchFromGitea,
autoreconfHook,
pkg-config,
openssl,
readline,
fetchurl,
}:
let
iana-enterprise-numbers = fetchurl {
url = "https://web.archive.org/web/20250113140800id_/https://www.iana.org/assignments/enterprise-numbers.txt";
hash = "sha256-aRgBEfZYwoL6YnU3aD0WYeMnJD5ZCj34S/9aQyzBIO4=";
};
in
stdenv.mkDerivation {
pname = "ipmitool";
version = "1.8.19-unstable-2025-02-18";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "IPMITool";
repo = "ipmitool";
rev = "3c91e6d91ec6090fe548c55ef301c33ff20c8ed8";
hash = "sha256-7R3jmPPd8+yKs7Q1vlU/ZaZusZVB0s+xc1HGeLyLdk0=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
openssl
readline
];
configureFlags = [ "--disable-registry-download" ];
postInstall = ''
# Install to path reported in configure as "Set IANA PEN dictionary search path to ..."
install -Dm444 ${iana-enterprise-numbers} $out/share/misc/enterprise-numbers
'';
meta = {
description = "Command-line interface to IPMI-enabled devices";
mainProgram = "ipmitool";
license = lib.licenses.bsd3;
homepage = "https://codeberg.org/IPMITool/ipmitool";
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ fpletz ];
};
}