Author: raskin Date: Mon Aug 29 10:16:36 2011 New Revision: 28872 URL: https://svn.nixos.org/websvn/nix/?rev=28872&sc=1
Log: Adding netboot Added: nixpkgs/trunk/pkgs/tools/networking/netboot/ nixpkgs/trunk/pkgs/tools/networking/netboot/default.nix Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix Added: nixpkgs/trunk/pkgs/tools/networking/netboot/default.nix ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ nixpkgs/trunk/pkgs/tools/networking/netboot/default.nix Mon Aug 29 10:16:36 2011 (r28872) @@ -0,0 +1,59 @@ +x@{builderDefsPackage + , fetchgit, ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + ["fetchgit"]; + + buildInputs = map (n: builtins.getAttr n x) + (builtins.attrNames (builtins.removeAttrs x helperArgNames)); + sourceInfo = rec { + baseName="netboot"; + rev="19a955cd87b399a5b56"; + name="${baseName}-git-head"; + url="git://github.com/ITikhonov/netboot.git"; + hash="7610c734dc46183439c161d327e7ef6a3d5bc07b5173850b92f71ec047b109d6"; + }; +in +rec { + srcDrv = a.fetchgit { + url = sourceInfo.url; + sha256 = sourceInfo.hash; + rev = sourceInfo.rev; + }; + + src=srcDrv + "/"; + + inherit (sourceInfo) name version; + inherit buildInputs; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doBuild" "doDeploy"]; + + doBuild = a.fullDepEntry '' + gcc netboot.c -o netboot + '' ["doUnpack" "addInputs"]; + + doDeploy = a.fullDepEntry '' + ensureDir "$out/bin" + cp netboot "$out/bin" + '' ["defEnsureDir" "minInit"]; + + meta = { + description = "Mini PXE server"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + license = "free-noncopyleft"; + }; + passthru = { + updateInfo = { + downloadPage = "https://github.com/ITikhonov/netboot"; + }; + }; +}) x + Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix ============================================================================== --- nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Aug 29 10:06:12 2011 (r28871) +++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Mon Aug 29 10:16:36 2011 (r28872) @@ -1006,6 +1006,8 @@ ndisc6 = callPackage ../tools/networking/ndisc6 { }; + netboot = callPackage ../tools/networking/netboot {}; + netcat = callPackage ../tools/networking/netcat { }; netkittftp = callPackage ../tools/networking/netkit/tftp { }; _______________________________________________ nix-commits mailing list nix-comm...@cs.uu.nl http://mail.cs.uu.nl/mailman/listinfo/nix-commits