nixpkgs/pkgs/applications/misc/ipmicfg/default.nix

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

36 lines
1.1 KiB
Nix
Raw Normal View History

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