Merge pull request #70172 from eadwu/init/update-systemd-resolved

update-systemd-resolved: init at 1.3.0
This commit is contained in:
Matthew Bauer 2019-11-07 17:51:47 -05:00 committed by GitHub
commit 5e955e3ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -5400,6 +5400,8 @@ in
update-resolv-conf = callPackage ../tools/networking/openvpn/update-resolv-conf.nix { }; update-resolv-conf = callPackage ../tools/networking/openvpn/update-resolv-conf.nix { };
update-systemd-resolved = callPackage ../tools/networking/openvpn/update-systemd-resolved.nix { };
opae = callPackage ../development/libraries/opae { }; opae = callPackage ../development/libraries/opae { };
opentracing-cpp = callPackage ../development/libraries/opentracing-cpp { }; opentracing-cpp = callPackage ../development/libraries/opentracing-cpp { };