Unverified Commit 1e4f63a7 authored by dish's avatar dish Committed by GitHub
Browse files

netbootxyz-efi: 2.0.82 -> 2.0.87; modernize (#428898)

parents 386d8a37 ffc90136
Loading
Loading
Loading
Loading
+20 −12
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  nix-update-script,
}:

let
stdenv.mkDerivation (finalAttrs: {
  pname = "netboot.xyz-efi";
  version = "2.0.82";
in
fetchurl {
  name = "${pname}-${version}";
  version = "2.0.87";

  url = "https://github.com/netbootxyz/netboot.xyz/releases/download/${version}/netboot.xyz.efi";
  sha256 = "sha256-cO8MCkroQ0s/j8wnwwIWfnxEvChLeOZw+gD4wrYBAog=";
  src = fetchurl {
    url = "https://github.com/netbootxyz/netboot.xyz/releases/download/${finalAttrs.version}/netboot.xyz.efi";
    hash = "sha256-8kd17ChqLuVH5/OdPc2rVDKEDWHl9ZWLh8k+EBrCGH8=";
  };

  dontUnpack = true;

  postInstall = ''
    cp $src $out
  '';

  passthru.updateScript = nix-update-script { };

  meta = with lib; {
  meta = {
    homepage = "https://netboot.xyz/";
    description = "Tool to boot OS installers and utilities over the network, to be run from a bootloader";
    license = licenses.asl20;
    maintainers = with maintainers; [ pinpox ];
    platforms = platforms.linux;
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ pinpox ];
  };
}
})