Merge pull request #254827 from hanleym/trust-dns
trust-dns: 0.22.1 -> 0.23.0
This commit is contained in:
commit
5f9390646a
|
@ -1,5 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.trust-dns;
|
cfg = config.services.trust-dns;
|
||||||
toml = pkgs.formats.toml { };
|
toml = pkgs.formats.toml { };
|
||||||
|
@ -55,7 +54,7 @@ in
|
||||||
defaultText = "pkgs.trust-dns";
|
defaultText = "pkgs.trust-dns";
|
||||||
description = mdDoc ''
|
description = mdDoc ''
|
||||||
Trust-dns package to use.
|
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 {
|
quiet = mkOption {
|
||||||
|
@ -136,7 +135,7 @@ in
|
||||||
flags = (lib.optional cfg.debug "--debug") ++ (lib.optional cfg.quiet "--quiet");
|
flags = (lib.optional cfg.debug "--debug") ++ (lib.optional cfg.quiet "--quiet");
|
||||||
flagsStr = builtins.concatStringsSep " " flags;
|
flagsStr = builtins.concatStringsSep " " flags;
|
||||||
in ''
|
in ''
|
||||||
${cfg.package}/bin/named --config ${configFile} ${flagsStr}
|
${cfg.package}/bin/trust-dns --config ${configFile} ${flagsStr}
|
||||||
'';
|
'';
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
|
|
@ -7,15 +7,15 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "trust-dns";
|
pname = "trust-dns";
|
||||||
version = "0.22.1";
|
version = "0.23.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "bluejekyll";
|
owner = "bluejekyll";
|
||||||
repo = "trust-dns";
|
repo = "trust-dns";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-YjwzU/mYKiHL2xB/oczkP/4i5XYIvSNyqDLmmrRQPhM=";
|
sha256 = "sha256-CfFEhZEk1Z7VG0n8EvyQwHvZIOEES5GKpm5tMeqhRVY=";
|
||||||
};
|
};
|
||||||
cargoHash = "sha256-uAmszVOlRttmn6b3Rv2Y5ZuP3qBIVjIFJ42BJro+K8s=";
|
cargoHash = "sha256-jmow/jtdbuKFovXWA5xbgM67iJmkwP35hiOivIJ5JdM=";
|
||||||
|
|
||||||
buildInputs = [ openssl ];
|
buildInputs = [ openssl ];
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
Loading…
Reference in a new issue