nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 35 lines 1.1 kB view raw
1{ lib, stdenv, fetchzip }: 2 3stdenv.mkDerivation rec { 4 pname = "ipmicfg"; 5 version = "1.34.0"; 6 buildVersion = "220906"; 7 8 src = fetchzip { 9 url = "https://www.supermicro.com/wftp/utility/IPMICFG/IPMICFG_${version}_build.${buildVersion}.zip"; 10 sha256 = "ZumCXuR7M2Ep7maBOBFk0UsxyRo4fBkf+9AVmkz4AF0="; 11 }; 12 13 installPhase = '' 14 mkdir -p "$out/bin" "$out/opt/ipmicfg" 15 cp Linux/64bit/* "$out/opt/ipmicfg" 16 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" 21 22 ln -s "$out/opt/ipmicfg/IPMICFG-Linux.x86_64" "$out/bin/ipmicfg" 23 ''; 24 25 dontPatchShebangs = true; # There are no scripts and it complains about null bytes. 26 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 }; 35}