nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchzip, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "ipmicfg"; 9 version = "1.34.0"; 10 buildVersion = "220906"; 11 12 src = fetchzip { 13 url = "https://www.supermicro.com/Bios/sw_download/481/IPMICFG_${version}_build.${buildVersion}.zip"; 14 hash = "sha256-ZumCXuR7M2Ep7maBOBFk0UsxyRo4fBkf+9AVmkz4AF0="; 15 }; 16 17 installPhase = '' 18 mkdir -p "$out/bin" "$out/opt/ipmicfg" 19 cp Linux/64bit/* "$out/opt/ipmicfg" 20 21 patchelf \ 22 --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 23 --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc ]}" \ 24 "$out/opt/ipmicfg/IPMICFG-Linux.x86_64" 25 26 ln -s "$out/opt/ipmicfg/IPMICFG-Linux.x86_64" "$out/bin/ipmicfg" 27 ''; 28 29 dontPatchShebangs = true; # There are no scripts and it complains about null bytes. 30 31 meta = { 32 description = "Supermicro IPMI configuration tool"; 33 homepage = "http://www.supermicro.com/products/nfo/ipmi.cfm"; 34 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 35 license = lib.licenses.unfree; 36 platforms = [ "x86_64-linux" ]; 37 maintainers = with lib.maintainers; [ sorki ]; 38 }; 39}