netboot: unbreak GCC 14, modernize (#394375)

This commit is contained in:
7c6f434c
2025-03-30 11:57:33 +00:00
committed by GitHub
+16 -7
View File
@@ -5,15 +5,16 @@
bison,
lzo,
db4,
versionCheckHook,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "netboot";
version = "0.10.2";
src = fetchurl {
url = "mirror://sourceforge/netboot/netboot-${version}.tar.gz";
sha256 = "09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0";
url = "mirror://sourceforge/netboot/netboot-${finalAttrs.version}.tar.gz";
hash = "sha256-4HFIsMOW+owsVCOZt5pq2q+oRoS5fAmR/R2sx/dKgCc=";
};
buildInputs = [
@@ -24,17 +25,25 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
# mgllex.l:398:53: error: passing argument 1 of 'copy_string' from incompatible pointer type []
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
# Disable parallel build, errors:
# link: `parseopt.lo' is not a valid libtool object
enableParallelBuilding = false;
meta = with lib; {
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/nbdbtool";
versionCheckProgramArg = "--version";
doInstallCheck = true;
meta = {
description = "Mini PXE server";
maintainers = [ maintainers.raskin ];
maintainers = with lib.maintainers; [ raskin ];
platforms = [
"x86_64-linux"
"aarch64-linux"
];
license = lib.licenses.free;
license = lib.licenses.gpl2Only;
};
}
})