mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
27 lines
766 B
Nix
27 lines
766 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dhcpcd-5.6.8";
|
|
|
|
src = fetchurl {
|
|
url = "http://roy.marples.name/downloads/dhcpcd/${name}.tar.bz2";
|
|
sha256 = "1i7fv1l0n7q1mnia7g0789ch63x5zhwk5gsrwvs78dv2f2kmvcd3";
|
|
};
|
|
|
|
patches = [ ./lxc_ro_promote_secondaries.patch ];
|
|
|
|
configureFlags = "--sysconfdir=/etc";
|
|
|
|
makeFlags = "PREFIX=\${out}";
|
|
|
|
# Hack to make installation succeed. dhcpcd will still use /var/db
|
|
# at runtime.
|
|
installFlags = "DBDIR=\${TMPDIR}/db SYSCONFDIR=$(out)/etc";
|
|
|
|
meta = {
|
|
description = "A client for the Dynamic Host Configuration Protocol (DHCP)";
|
|
homepage = http://roy.marples.name/projects/dhcpcd;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
|
};
|
|
}
|