netboot: simplify, build only on 64bit

This commit is contained in:
Domen Kožar 2014-08-26 12:11:22 +02:00
parent f84c121e5e
commit 7573763e89

View File

@ -1,47 +1,18 @@
x@{builderDefsPackage { stdenv, fetchurl, yacc, lzo, db4 }:
, fetchurl, yacc, bison, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x) stdenv.mkDerivation rec {
(builtins.attrNames (builtins.removeAttrs x helperArgNames)); name = "netboot-0.10.2";
sourceInfo = rec { src = fetchurl {
version="0.10.2"; url = "mirror://sourceforge/netboot/${name}.tar.gz";
baseName="netboot"; sha256 = "09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0";
name="${baseName}-${version}";
url="mirror://sourceforge/netboot/${name}.tar.gz";
hash="09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
}; };
buildInputs = [ yacc lzo db4 ];
inherit (sourceInfo) name version; meta = with stdenv.lib; {
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doUnpack" "doConfigure" "doMakeInstall"];
meta = {
description = "Mini PXE server"; description = "Mini PXE server";
maintainers = with a.lib.maintainers; maintainers = [ maintainers.raskin ];
[ platforms = ["x86_64-linux"];
raskin
];
platforms = with a.lib.platforms;
linux;
license = "free-noncopyleft"; license = "free-noncopyleft";
}; };
passthru = { }
updateInfo = {
downloadPage = "https://github.com/ITikhonov/netboot";
};
};
}) x