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

Changed files
+20 -12
pkgs
by-name
ne
netbootxyz-efi
+20 -12
pkgs/by-name/ne/netbootxyz-efi/package.nix
···
{
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 ];
};
-
}
+
})