mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
netboot: modernize
This commit is contained in:
parent
61f4f97d4f
commit
4e7642cb01
1 changed files with 13 additions and 7 deletions
|
@ -5,15 +5,16 @@
|
||||||
bison,
|
bison,
|
||||||
lzo,
|
lzo,
|
||||||
db4,
|
db4,
|
||||||
|
versionCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "netboot";
|
pname = "netboot";
|
||||||
version = "0.10.2";
|
version = "0.10.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/netboot/netboot-${version}.tar.gz";
|
url = "mirror://sourceforge/netboot/netboot-${finalAttrs.version}.tar.gz";
|
||||||
sha256 = "09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0";
|
hash = "sha256-4HFIsMOW+owsVCOZt5pq2q+oRoS5fAmR/R2sx/dKgCc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -31,13 +32,18 @@ stdenv.mkDerivation rec {
|
||||||
# link: `parseopt.lo' is not a valid libtool object
|
# link: `parseopt.lo' is not a valid libtool object
|
||||||
enableParallelBuilding = false;
|
enableParallelBuilding = false;
|
||||||
|
|
||||||
meta = with lib; {
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||||
|
versionCheckProgram = "${placeholder "out"}/bin/nbdbtool";
|
||||||
|
versionCheckProgramArg = "--version";
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Mini PXE server";
|
description = "Mini PXE server";
|
||||||
maintainers = [ maintainers.raskin ];
|
maintainers = with lib.maintainers; [ raskin ];
|
||||||
platforms = [
|
platforms = [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
];
|
];
|
||||||
license = lib.licenses.free;
|
license = lib.licenses.gpl2Only;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue