dnsmasq: get it working on darwin again
This commit is contained in:
parent
ca277c2257
commit
50a00101c1
@ -3,10 +3,10 @@
|
|||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
let
|
let
|
||||||
copts = concatStringsSep " " ([
|
copts = concatStringsSep " " ([
|
||||||
"-DHAVE_DBUS"
|
|
||||||
"-DHAVE_IDN"
|
"-DHAVE_IDN"
|
||||||
"-DHAVE_DNSSEC"
|
"-DHAVE_DNSSEC"
|
||||||
] ++ optionals stdenv.isLinux [
|
] ++ optionals stdenv.isLinux [
|
||||||
|
"-DHAVE_DBUS"
|
||||||
"-DHAVE_CONNTRACK"
|
"-DHAVE_CONNTRACK"
|
||||||
]);
|
]);
|
||||||
in
|
in
|
||||||
@ -29,13 +29,16 @@ stdenv.mkDerivation rec {
|
|||||||
"LOCALEDIR=$(out)/share/locale"
|
"LOCALEDIR=$(out)/share/locale"
|
||||||
];
|
];
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = optionalString stdenv.isLinux ''
|
||||||
make -C contrib/wrt
|
make -C contrib/wrt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# XXX: Does the systemd service definition really belong here when our NixOS
|
||||||
|
# module can create it in Nix-land?
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 dbus/dnsmasq.conf $out/etc/dbus-1/system.d/dnsmasq.conf
|
|
||||||
install -Dm644 trust-anchors.conf $out/share/dnsmasq/trust-anchors.conf
|
install -Dm644 trust-anchors.conf $out/share/dnsmasq/trust-anchors.conf
|
||||||
|
'' + optionalString stdenv.isLinux ''
|
||||||
|
install -Dm644 dbus/dnsmasq.conf $out/etc/dbus-1/system.d/dnsmasq.conf
|
||||||
install -Dm755 contrib/wrt/dhcp_lease_time $out/bin/dhcp_lease_time
|
install -Dm755 contrib/wrt/dhcp_lease_time $out/bin/dhcp_lease_time
|
||||||
install -Dm755 contrib/wrt/dhcp_release $out/bin/dhcp_release
|
install -Dm755 contrib/wrt/dhcp_release $out/bin/dhcp_release
|
||||||
|
|
||||||
@ -50,8 +53,8 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [ dbus_libs nettle libidn ]
|
buildInputs = [ nettle libidn ]
|
||||||
++ optional stdenv.isLinux libnetfilter_conntrack;
|
++ optionals stdenv.isLinux [ dbus_libs libnetfilter_conntrack ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "An integrated DNS, DHCP and TFTP server for small networks";
|
description = "An integrated DNS, DHCP and TFTP server for small networks";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user