Merge pull request #254827 from hanleym/trust-dns

trust-dns: 0.22.1 -> 0.23.0
This commit is contained in:
Mario Rodas 2023-09-13 06:56:03 -05:00 committed by GitHub
commit 5f9390646a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,4 @@
{ config, lib, pkgs, ... }:
let
cfg = config.services.trust-dns;
toml = pkgs.formats.toml { };
@ -55,7 +54,7 @@ in
defaultText = "pkgs.trust-dns";
description = mdDoc ''
Trust-dns package to use.
Only `bin/named` need be provided: the other trust-dns utilities (client and resolver) are not needed.
Only `bin/trust-dns` need be provided: the other trust-dns utilities (client and resolver) are not needed.
'';
};
quiet = mkOption {
@ -136,7 +135,7 @@ in
flags = (lib.optional cfg.debug "--debug") ++ (lib.optional cfg.quiet "--quiet");
flagsStr = builtins.concatStringsSep " " flags;
in ''
${cfg.package}/bin/named --config ${configFile} ${flagsStr}
${cfg.package}/bin/trust-dns --config ${configFile} ${flagsStr}
'';
Type = "simple";
Restart = "on-failure";

View File

@ -7,15 +7,15 @@
rustPlatform.buildRustPackage rec {
pname = "trust-dns";
version = "0.22.1";
version = "0.23.0";
src = fetchFromGitHub {
owner = "bluejekyll";
repo = "trust-dns";
rev = "v${version}";
sha256 = "sha256-YjwzU/mYKiHL2xB/oczkP/4i5XYIvSNyqDLmmrRQPhM=";
sha256 = "sha256-CfFEhZEk1Z7VG0n8EvyQwHvZIOEES5GKpm5tMeqhRVY=";
};
cargoHash = "sha256-uAmszVOlRttmn6b3Rv2Y5ZuP3qBIVjIFJ42BJro+K8s=";
cargoHash = "sha256-jmow/jtdbuKFovXWA5xbgM67iJmkwP35hiOivIJ5JdM=";
buildInputs = [ openssl ];
nativeBuildInputs = [ pkg-config ];