Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / ipmicfg / default.nix
blob074b7520f38c19393c85a59af53e7e9b676559f2
1 { lib, stdenv, fetchzip }:
3 stdenv.mkDerivation rec {
4   pname = "ipmicfg";
5   version = "1.34.0";
6   buildVersion = "220906";
8   src = fetchzip {
9     url = "https://www.supermicro.com/wftp/utility/IPMICFG/IPMICFG_${version}_build.${buildVersion}.zip";
10     sha256 = "ZumCXuR7M2Ep7maBOBFk0UsxyRo4fBkf+9AVmkz4AF0=";
11   };
13   installPhase = ''
14     mkdir -p "$out/bin" "$out/opt/ipmicfg"
15     cp Linux/64bit/* "$out/opt/ipmicfg"
17     patchelf \
18        --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
19        --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc ]}" \
20        "$out/opt/ipmicfg/IPMICFG-Linux.x86_64"
22     ln -s "$out/opt/ipmicfg/IPMICFG-Linux.x86_64" "$out/bin/ipmicfg"
23   '';
25    dontPatchShebangs = true; # There are no scripts and it complains about null bytes.
27    meta = with lib; {
28      description = "Supermicro IPMI configuration tool";
29      homepage = "http://www.supermicro.com/products/nfo/ipmi.cfm";
30      sourceProvenance = with sourceTypes; [ binaryNativeCode ];
31      license = licenses.unfree;
32      platforms = [ "x86_64-linux" ];
33      maintainers = with maintainers; [ sorki ];
34    };