Merge pull request #167078 from r-ryantm/auto-update/smartdns

smartdns: 35 -> 36
This commit is contained in:
Artturi 2022-04-05 08:55:38 +03:00 committed by GitHub
commit 996a9c24d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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