mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +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,
|
||||
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 = [
|
||||
|
@ -31,13 +32,18 @@ stdenv.mkDerivation rec {
|
|||
# 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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue