summary refs log tree commit diff
diff options
context:
space:
mode:
authorR. Ryantm <ryantm-bot@ryantm.com>2022-04-03 19:46:07 +0000
committerArtturin <Artturin@artturin.com>2022-04-04 08:17:18 +0300
commitdaaeb8af9c4929902fac07c69a70094decade333 (patch)
tree3d81a12a026febe64dd10568945b9bd9b37352b7
parentf4edf20487ef7493b4f797e7b6e51c7ab332c3e3 (diff)
downloadnixpkgs-daaeb8af9c4929902fac07c69a70094decade333.tar
nixpkgs-daaeb8af9c4929902fac07c69a70094decade333.tar.gz
nixpkgs-daaeb8af9c4929902fac07c69a70094decade333.tar.bz2
nixpkgs-daaeb8af9c4929902fac07c69a70094decade333.tar.lz
nixpkgs-daaeb8af9c4929902fac07c69a70094decade333.tar.xz
nixpkgs-daaeb8af9c4929902fac07c69a70094decade333.tar.zst
nixpkgs-daaeb8af9c4929902fac07c69a70094decade333.zip
smartdns: 35 -> 36
-rw-r--r--pkgs/tools/networking/smartdns/default.nix20
1 files 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";