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

34 lines
1 KiB
Nix
Raw Normal View History

2017-11-02 23:06:05 +00:00
{ stdenv, fetchzip }:
2017-11-02 21:19:13 +00:00
stdenv.mkDerivation rec {
name = "ipmicfg-${version}";
version = "1.27.0";
buildVersion = "170620";
2017-11-02 23:06:05 +00:00
src = fetchzip {
2017-11-02 21:19:13 +00:00
url = "ftp://ftp.supermicro.com/utility/IPMICFG/IPMICFG_${version}_build.${buildVersion}.zip";
2017-11-02 23:06:05 +00:00
sha256 = "0jr2vih4hzymb62mbqyykwcrjhbhazf6wr1g0cq8ji586i3z3vw5";
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"
2017-11-02 23:06:05 +00:00
patchelf "$out/opt/ipmicfg/IPMICFG-Linux.x86_64" \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "${stdenv.lib.makeLibraryPath [ stdenv.cc.cc ]}"
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.
2017-11-02 21:19:13 +00:00
meta = with stdenv.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 ];
};
}