File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 55 bison ,
66 lzo ,
77 db4 ,
8+ versionCheckHook ,
89} :
910
10- stdenv . mkDerivation rec {
11+ stdenv . mkDerivation ( finalAttrs : {
1112 pname = "netboot" ;
1213 version = "0.10.2" ;
1314
1415 src = fetchurl {
15- url = "mirror://sourceforge/netboot/netboot-${ version } .tar.gz" ;
16- sha256 = "09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0 " ;
16+ url = "mirror://sourceforge/netboot/netboot-${ finalAttrs . version } .tar.gz" ;
17+ hash = "sha256-4HFIsMOW+owsVCOZt5pq2q+oRoS5fAmR/R2sx/dKgCc= " ;
1718 } ;
1819
1920 buildInputs = [
@@ -31,13 +32,18 @@ stdenv.mkDerivation rec {
3132 # link: `parseopt.lo' is not a valid libtool object
3233 enableParallelBuilding = false ;
3334
34- meta = with lib ; {
35+ nativeInstallCheckInputs = [ versionCheckHook ] ;
36+ versionCheckProgram = "${ placeholder "out" } /bin/nbdbtool" ;
37+ versionCheckProgramArg = "--version" ;
38+ doInstallCheck = true ;
39+
40+ meta = {
3541 description = "Mini PXE server" ;
36- maintainers = [ maintainers . raskin ] ;
42+ maintainers = with lib . maintainers ; [ raskin ] ;
3743 platforms = [
3844 "x86_64-linux"
3945 "aarch64-linux"
4046 ] ;
41- license = lib . licenses . free ;
47+ license = lib . licenses . gpl2Only ;
4248 } ;
43- }
49+ } )
You can’t perform that action at this time.
0 commit comments