From daaeb8af9c4929902fac07c69a70094decade333 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 3 Apr 2022 19:46:07 +0000 Subject: [PATCH] smartdns: 35 -> 36 --- pkgs/tools/networking/smartdns/default.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/networking/smartdns/default.nix b/pkgs/tools/networking/smartdns/default.nix index 8ac1e137ca4..fd4cdbaf977 100644 --- a/pkgs/tools/networking/smartdns/default.nix +++ b/pkgs/tools/networking/smartdns/default.nix @@ -1,34 +1,32 @@ -{ lib, stdenv, fetchFromGitHub, openssl }: +{ lib, stdenv, fetchFromGitHub, openssl, testVersion, smartdns }: stdenv.mkDerivation rec { pname = "smartdns"; - version = "35"; + version = "36"; src = fetchFromGitHub { owner = "pymumu"; repo = pname; rev = "Release${version}"; - sha256 = "sha256-5822qe3mdn4wPO8fHW5AsgMA7xbJnMjZn9DbiMU3GX0="; + sha256 = "sha256-sjrRPmTJRCUnMrA08M/VdYhL7/OfQY30/t1loLPSrlQ="; }; 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" "RUNSTATEDIR=/run" + # by default it is the build time... weird... https://github.com/pymumu/smartdns/search?q=ver + "VER=${version}" ]; installFlags = [ "SYSCONFDIR=${placeholder "out"}/etc" ]; + passthru.tests = { + version = testVersion { package = smartdns; }; + }; + meta = with lib; { description = "A local DNS server to obtain the fastest website IP for the best Internet experience";