From ffc901364b4825dacbfabe95a1db01e41c3a6bf8 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sun, 27 Jul 2025 13:59:42 -0400 Subject: [PATCH] netbootxyz-efi: 2.0.82 -> 2.0.87; modernize This release adds support for nixos 24.11 boot. (25.05 release is not cut by upstream yet.) --- pkgs/by-name/ne/netbootxyz-efi/package.nix | 32 ++++++++++++++-------- 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/ne/netbootxyz-efi/package.nix b/pkgs/by-name/ne/netbootxyz-efi/package.nix index 63ce75a494cb..52503b1f04ab 100644 --- a/pkgs/by-name/ne/netbootxyz-efi/package.nix +++ b/pkgs/by-name/ne/netbootxyz-efi/package.nix @@ -1,23 +1,31 @@ { 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="; + }; - meta = with lib; { + dontUnpack = true; + + postInstall = '' + cp $src $out + ''; + + passthru.updateScript = nix-update-script { }; + + 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 ]; }; -} +})