add a wrapper for dhclient
svn path=/nixpkgs/trunk/; revision=3655
This commit is contained in:
parent
4b640be166
commit
77c089a857
@ -168,6 +168,11 @@ rec {
|
||||
inherit fetchurl stdenv groff;
|
||||
};
|
||||
|
||||
dhcpWrapper = (import ../tools/networking/dhcp-wrapper) {
|
||||
inherit stdenv dhcp;
|
||||
};
|
||||
|
||||
|
||||
graphviz = (import ../tools/graphics/graphviz) {
|
||||
inherit fetchurl stdenv libpng libjpeg expat x11 yacc libtool;
|
||||
inherit (xlibs) libXaw;
|
||||
|
5
pkgs/tools/networking/dhcp-wrapper/builder.sh
Normal file
5
pkgs/tools/networking/dhcp-wrapper/builder.sh
Normal file
@ -0,0 +1,5 @@
|
||||
. $stdenv/setup
|
||||
. $makeWrapper
|
||||
|
||||
makeWrapper "$dhcp/sbin/dhclient" "$out/sbin/dhclient" \
|
||||
--set PATH_DHCLIENT_SCRIPT "$dhcp/sbin/dhclient-script"
|
10
pkgs/tools/networking/dhcp-wrapper/default.nix
Normal file
10
pkgs/tools/networking/dhcp-wrapper/default.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{stdenv, dhcp}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = dhcp.name;
|
||||
|
||||
builder = ./builder.sh;
|
||||
makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
|
||||
|
||||
inherit dhcp;
|
||||
}
|
Loading…
Reference in New Issue
Block a user