Merge pull request #23578 from nicknovitski/dnsmasq-plist

dnsmasq: install launchd plist on darwin

authored by Daiderd Jordan and committed by GitHub 8b7f5e8d f0f77af8

+5
+5
pkgs/tools/networking/dnsmasq/default.nix
··· 39 # module can create it in Nix-land? 40 postInstall = '' 41 install -Dm644 trust-anchors.conf $out/share/dnsmasq/trust-anchors.conf 42 '' + optionalString stdenv.isLinux '' 43 install -Dm644 dbus/dnsmasq.conf $out/etc/dbus-1/system.d/dnsmasq.conf 44 install -Dm755 contrib/lease-tools/dhcp_lease_time $out/bin/dhcp_lease_time
··· 39 # module can create it in Nix-land? 40 postInstall = '' 41 install -Dm644 trust-anchors.conf $out/share/dnsmasq/trust-anchors.conf 42 + '' + optionalString stdenv.isDarwin '' 43 + install -Dm644 contrib/MacOSX-launchd/uk.org.thekelleys.dnsmasq.plist \ 44 + $out/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist 45 + substituteInPlace $out/Library/LaunchDaemons/uk.org.thekelleys.dnsmasq.plist \ 46 + --replace "/usr/local/sbin" "$out/bin" 47 '' + optionalString stdenv.isLinux '' 48 install -Dm644 dbus/dnsmasq.conf $out/etc/dbus-1/system.d/dnsmasq.conf 49 install -Dm755 contrib/lease-tools/dhcp_lease_time $out/bin/dhcp_lease_time