forked from mirrors/nixpkgs
netboot: change to a fixed version, fix build
This commit is contained in:
parent
c9d3702c97
commit
4768a0cea6
|
@ -1,46 +1,33 @@
|
||||||
x@{builderDefsPackage
|
x@{builderDefsPackage
|
||||||
, fetchgit, ...}:
|
, fetchurl, yacc, bison, ...}:
|
||||||
builderDefsPackage
|
builderDefsPackage
|
||||||
(a :
|
(a :
|
||||||
let
|
let
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||||
["fetchgit"];
|
[];
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||||
sourceInfo = rec {
|
sourceInfo = rec {
|
||||||
version="git-head-${rev}";
|
version="0.10.2";
|
||||||
baseName="netboot";
|
baseName="netboot";
|
||||||
rev="19a955cd87b399a5b56";
|
name="${baseName}-${version}";
|
||||||
name="${baseName}-git-head";
|
url="mirror://sourceforge/netboot/${name}.tar.gz";
|
||||||
url="git://github.com/ITikhonov/netboot.git";
|
hash="09w09bvwgb0xzn8hjz5rhi3aibysdadbg693ahn8rylnqfq4hwg0";
|
||||||
hash="7610c734dc46183439c161d327e7ef6a3d5bc07b5173850b92f71ec047b109d6";
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
rec {
|
rec {
|
||||||
srcDrv = a.fetchgit {
|
src = a.fetchurl {
|
||||||
url = sourceInfo.url;
|
url = sourceInfo.url;
|
||||||
sha256 = sourceInfo.hash;
|
sha256 = sourceInfo.hash;
|
||||||
rev = sourceInfo.rev;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
src=srcDrv + "/";
|
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
inherit (sourceInfo) name version;
|
||||||
inherit buildInputs;
|
inherit buildInputs;
|
||||||
|
|
||||||
/* doConfigure should be removed if not needed */
|
/* doConfigure should be removed if not needed */
|
||||||
phaseNames = ["doBuild" "doDeploy"];
|
phaseNames = ["doUnpack" "doConfigure" "doMakeInstall"];
|
||||||
|
|
||||||
doBuild = a.fullDepEntry ''
|
|
||||||
gcc netboot.c -o netboot
|
|
||||||
'' ["doUnpack" "addInputs"];
|
|
||||||
|
|
||||||
doDeploy = a.fullDepEntry ''
|
|
||||||
mkdir -p "$out/bin"
|
|
||||||
cp netboot "$out/bin"
|
|
||||||
'' ["defEnsureDir" "minInit"];
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Mini PXE server";
|
description = "Mini PXE server";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with a.lib.maintainers;
|
||||||
|
|
Loading…
Reference in a new issue