diff options
author | Edmund Wu <fangkazuto@gmail.com> | 2019-10-01 08:40:43 -0400 |
---|---|---|
committer | Edmund Wu <fangkazuto@gmail.com> | 2019-10-01 08:43:36 -0400 |
commit | 5766bd451a63eae11ba19d9eaaa55968129aa056 (patch) | |
tree | 0ca7fac040561d6a391dbc76ec5b56d93941c69b /pkgs/tools/networking/openvpn | |
parent | 4b7cac98a106d38df62d4315892976f4723e5b0b (diff) | |
download | nixpkgs-5766bd451a63eae11ba19d9eaaa55968129aa056.tar nixpkgs-5766bd451a63eae11ba19d9eaaa55968129aa056.tar.gz nixpkgs-5766bd451a63eae11ba19d9eaaa55968129aa056.tar.bz2 nixpkgs-5766bd451a63eae11ba19d9eaaa55968129aa056.tar.lz nixpkgs-5766bd451a63eae11ba19d9eaaa55968129aa056.tar.xz nixpkgs-5766bd451a63eae11ba19d9eaaa55968129aa056.tar.zst nixpkgs-5766bd451a63eae11ba19d9eaaa55968129aa056.zip |
update-systemd-resolved: init at 1.3.0
Diffstat (limited to 'pkgs/tools/networking/openvpn')
-rw-r--r-- | pkgs/tools/networking/openvpn/update-systemd-resolved.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/networking/openvpn/update-systemd-resolved.nix b/pkgs/tools/networking/openvpn/update-systemd-resolved.nix new file mode 100644 index 00000000000..ddb3cc8e377 --- /dev/null +++ b/pkgs/tools/networking/openvpn/update-systemd-resolved.nix @@ -0,0 +1,34 @@ +{ lib, stdenv, fetchFromGitHub +, makeWrapper +, iproute, systemd, coreutils, utillinux }: + +stdenv.mkDerivation rec { + pname = "update-systemd-resolved"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "jonathanio"; + repo = "update-systemd-resolved"; + rev = "v${version}"; + sha256 = "19zhbpyms57yb70hi0ws5sbkpk2yqp9nnix3f86r36h1g93m70lm"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + buildFlags = [ + "PREFIX=${placeholder "out"}/libexec/openvpn" + ]; + + installPhase = '' + wrapProgram $out/libexec/openvpn/update-systemd-resolved \ + --prefix PATH : ${lib.makeBinPath [ iproute systemd coreutils utillinux ]} + ''; + + meta = with stdenv.lib; { + description = "Helper script for OpenVPN to directly update the DNS settings of a link through systemd-resolved via DBus"; + homepage = https://github.com/jonathanio/update-systemd-resolved; + maintainers = with maintainers; [ eadwu ]; + license = licenses.gpl3; + platforms = platforms.unix; + }; +} |