update-resolv-conf: 20141003 -> 2016-04-24

+16 -11
+16 -11
pkgs/tools/networking/openvpn/update-resolv-conf.nix
··· 1 - { stdenv, fetchgit, makeWrapper, openresolv, coreutils }: 2 3 - stdenv.mkDerivation rec { 4 - name = "update-resolv-conf-20141003"; 5 6 - src = fetchgit { 7 - url = https://github.com/masterkorp/openvpn-update-resolv-conf/; 8 - rev = "dd968419373bce71b22bbd26de962e89eb470670"; 9 - sha256 = "0j7mg66lqhgvhybgbn98y7i5skj1ify41hmb0yhkx2xrli8027b9"; 10 }; 11 12 nativeBuildInputs = [ makeWrapper ]; 13 14 installPhase = '' 15 install -Dm555 update-resolv-conf.sh $out/libexec/openvpn/update-resolv-conf 16 - sed -i 's,^\(RESOLVCONF=\).*,\1resolvconf,' $out/libexec/openvpn/update-resolv-conf 17 18 - wrapProgram $out/libexec/openvpn/update-resolv-conf \ 19 - --prefix PATH : ${coreutils}/bin:${openresolv}/sbin 20 ''; 21 22 meta = with stdenv.lib; { 23 description = "Script to update your /etc/resolv.conf with DNS settings that come from the received push dhcp-options"; 24 - homepage = https://github.com/masterkorp/openvpn-update-resolv-conf/; 25 maintainers = with maintainers; [ abbradar ]; 26 license = licenses.gpl2; 27 platforms = platforms.unix;
··· 1 + { stdenv, lib, fetchFromGitHub, makeWrapper, openresolv, coreutils, which, systemd }: 2 3 + let 4 + binPath = lib.makeBinPath [ coreutils openresolv which systemd ]; 5 6 + in stdenv.mkDerivation rec { 7 + name = "update-resolv-conf-2016-04-24"; 8 + 9 + src = fetchFromGitHub { 10 + owner = "masterkorp"; 11 + repo = "openvpn-update-resolv-conf"; 12 + rev = "994574f36b9147cc78674a5f13874d503a625c98"; 13 + sha256 = "1rvzlaj53k8s09phg4clsyzlmf44dmwwyvg0nbg966sxp3xsqlxc"; 14 }; 15 16 nativeBuildInputs = [ makeWrapper ]; 17 18 installPhase = '' 19 install -Dm555 update-resolv-conf.sh $out/libexec/openvpn/update-resolv-conf 20 + install -Dm555 update-systemd-network.sh $out/libexec/openvpn/update-systemd-network 21 22 + for i in $out/libexec/openvpn/*; do 23 + wrapProgram $i --prefix PATH : ${binPath} 24 + done 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "Script to update your /etc/resolv.conf with DNS settings that come from the received push dhcp-options"; 29 + homepage = "https://github.com/masterkorp/openvpn-update-resolv-conf/"; 30 maintainers = with maintainers; [ abbradar ]; 31 license = licenses.gpl2; 32 platforms = platforms.unix;