From 27873366b9536b892e16c477abd38c68accfda46 Mon Sep 17 00:00:00 2001 From: Peng Mei Yu Date: Sat, 18 Sep 2021 11:47:36 +0800 Subject: [PATCH] smartdns: Fix systemd service --- pkgs/tools/networking/smartdns/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/tools/networking/smartdns/default.nix b/pkgs/tools/networking/smartdns/default.nix index f7e38c0eba1..8ac1e137ca4 100644 --- a/pkgs/tools/networking/smartdns/default.nix +++ b/pkgs/tools/networking/smartdns/default.nix @@ -13,6 +13,14 @@ stdenv.mkDerivation rec { buildInputs = [ openssl ]; + # Force the systemd service file to be regenerated from it's template. This + # file is erroneously added in version 35 and it has already been deleted from + # upstream's git repository. So this "postPatch" phase can be deleted in next + # release. + postPatch = '' + rm -f systemd/smartdns.service + ''; + makeFlags = [ "PREFIX=${placeholder "out"}" "SYSTEMDSYSTEMUNITDIR=${placeholder "out"}/lib/systemd/system"