nixpkgs/pkgs/tools/networking/dhcpcd/default.nix
Ryan Mulligan 7cc74d6dc5 dhcpcd: 6.11.5 -> 7.0.1
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/04mp6n1v5sgc62qwxpz1gfxv589cn76k-dhcpcd-7.0.1/bin/dhcpcd --help` got 0 exit code
- ran `/nix/store/04mp6n1v5sgc62qwxpz1gfxv589cn76k-dhcpcd-7.0.1/bin/dhcpcd --version` and found version 7.0.1
- found 7.0.1 with grep in /nix/store/04mp6n1v5sgc62qwxpz1gfxv589cn76k-dhcpcd-7.0.1
- found 7.0.1 in filename of file in /nix/store/04mp6n1v5sgc62qwxpz1gfxv589cn76k-dhcpcd-7.0.1
2018-02-25 20:01:18 -08:00

34 lines
955 B
Nix

{ stdenv, fetchurl, pkgconfig, udev }:
stdenv.mkDerivation rec {
name = "dhcpcd-7.0.1";
src = fetchurl {
url = "mirror://roy/dhcpcd/${name}.tar.xz";
sha256 = "1j7kyg9gm5d1k6qjdscjz2rjgpqia0dxgk69lswp21y0pizm6dlb";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ udev ];
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var"
];
makeFlags = "PREFIX=\${out}";
# Hack to make installation succeed. dhcpcd will still use /var/db
# at runtime.
installFlags = "DBDIR=\${TMPDIR}/db SYSCONFDIR=$(out)/etc";
# Check that the udev plugin got built.
postInstall = stdenv.lib.optional (udev != null) "[ -e $out/lib/dhcpcd/dev/udev.so ]";
meta = {
description = "A client for the Dynamic Host Configuration Protocol (DHCP)";
homepage = https://roy.marples.name/projects/dhcpcd;
platforms = stdenv.lib.platforms.linux;
maintainers = with stdenv.lib.maintainers; [ eelco fpletz ];
};
}