diff options
author | Vladimír Čunát <v@cunat.cz> | 2019-11-09 07:20:00 +0100 |
---|---|---|
committer | Vladimír Čunát <v@cunat.cz> | 2019-11-09 07:26:53 +0100 |
commit | 457e94d9008a55f0302100b00b77ea9ea478eaef (patch) | |
tree | fa6c4caad3cd47fcff78421a553086cd49dc9f54 /pkgs/tools/networking/openvpn/update-systemd-resolved.nix | |
parent | 4fc27edf074b63a46782832279f8ac1c27b43829 (diff) | |
parent | 5e70be026ee4eb05ed1c25d659848ab2f7102100 (diff) | |
download | nixpkgs-457e94d9008a55f0302100b00b77ea9ea478eaef.tar nixpkgs-457e94d9008a55f0302100b00b77ea9ea478eaef.tar.gz nixpkgs-457e94d9008a55f0302100b00b77ea9ea478eaef.tar.bz2 nixpkgs-457e94d9008a55f0302100b00b77ea9ea478eaef.tar.lz nixpkgs-457e94d9008a55f0302100b00b77ea9ea478eaef.tar.xz nixpkgs-457e94d9008a55f0302100b00b77ea9ea478eaef.tar.zst nixpkgs-457e94d9008a55f0302100b00b77ea9ea478eaef.zip |
Merge branch 'master' into staging-next
~4k rebuilds on each Linux.
Diffstat (limited to 'pkgs/tools/networking/openvpn/update-systemd-resolved.nix')
-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; + }; +} |