11 stdenv.mkDerivation rec {
12 pname = "update-systemd-resolved";
13 # when updating this, check if additional binaries need injecting into PATH
16 src = fetchFromGitHub {
18 repo = "update-systemd-resolved";
20 hash = "sha256-lYJTR3oBmpENcqNHa9PFXsw7ly6agwjBWf4UXf1d8Kc=";
23 # set SCRIPT_NAME in case we are wrapped and inject PATH
25 ./update-systemd-resolved.patch
28 PREFIX = "${placeholder "out"}/libexec/openvpn";
31 substituteInPlace ${PREFIX}/update-systemd-resolved \
32 --subst-var-by PATH ${lib.makeBinPath [ coreutils iproute2 runtimeShell systemd util-linux ]}
36 description = "Helper script for OpenVPN to directly update the DNS settings of a link through systemd-resolved via DBus";
37 homepage = "https://github.com/jonathanio/update-systemd-resolved";
38 license = licenses.gpl3Only;
39 maintainers = with maintainers; [ eadwu ];
40 platforms = platforms.linux;