summary refs log tree commit diff
path: root/pkgs/tools/networking/dhcp/builder.sh
blob: 8fbd42b944c78b89ad95a18d07399ff64e0947df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
source $stdenv/setup

export DESTDIR=$out

# Hack to prevent dhclient from overriding the PATH specified with
# '-e' on the command-line.
makeFlags="CLIENT_PATH='\"FAKE_PATH=/nothing\"'"

configurePhase=configurePhase
configurePhase() {
    ./configure
    prefix=$out
}

preBuild=preBuild
preBuild() {
    substituteInPlace client/scripts/linux --replace /bin/bash $shell
}

genericBuild