2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2017-11-02 21:19:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ipmicfg";
|
2021-01-18 19:56:18 +00:00
|
|
|
version = "1.32.0";
|
|
|
|
buildVersion = "200910";
|
2017-11-02 21:19:13 +00:00
|
|
|
|
2017-11-02 23:06:05 +00:00
|
|
|
src = fetchzip {
|
2020-02-20 09:36:41 +00:00
|
|
|
url = "https://www.supermicro.com/wftp/utility/IPMICFG/IPMICFG_${version}_build.${buildVersion}.zip";
|
2021-01-18 19:56:18 +00:00
|
|
|
sha256 = "1mncinwgx5d8jkvnvhccqlj2xp0xa5xjsab4r5mblmcnvm609rr3";
|
2017-11-02 21:19:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-11-02 23:06:05 +00:00
|
|
|
mkdir -p "$out/bin" "$out/opt/ipmicfg"
|
2017-11-02 21:19:13 +00:00
|
|
|
cp Linux/64bit/* "$out/opt/ipmicfg"
|
|
|
|
|
2018-04-25 15:07:16 +01:00
|
|
|
patchelf \
|
2017-11-02 23:06:05 +00:00
|
|
|
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
2021-01-15 05:42:41 +00:00
|
|
|
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc ]}" \
|
2018-04-25 15:07:16 +01:00
|
|
|
"$out/opt/ipmicfg/IPMICFG-Linux.x86_64"
|
2017-11-02 21:19:13 +00:00
|
|
|
|
|
|
|
ln -s "$out/opt/ipmicfg/IPMICFG-Linux.x86_64" "$out/bin/ipmicfg"
|
|
|
|
'';
|
|
|
|
|
2017-11-02 23:06:05 +00:00
|
|
|
dontPatchShebangs = true; # There are no scripts and it complains about null bytes.
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-11-02 23:06:05 +00:00
|
|
|
description = "Supermicro IPMI configuration tool";
|
|
|
|
homepage = "http://www.supermicro.com/products/nfo/ipmi.cfm";
|
2017-11-02 21:19:13 +00:00
|
|
|
license = licenses.unfree;
|
2017-11-02 23:06:05 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2017-11-02 21:19:13 +00:00
|
|
|
maintainers = with maintainers; [ sorki ];
|
|
|
|
};
|
|
|
|
}
|