Skip to content

Commit

Permalink
Merge pull request #205866 from uninsane/pr-trust-dns
Browse files Browse the repository at this point in the history
trust-dns: init at 0.22.0
  • Loading branch information
NickCao authored Jan 25, 2023
2 parents 6af6494 + feee7e0 commit fdc0bb1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/servers/dns/trust-dns/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, fetchFromGitHub
, openssl
, pkg-config
, rustPlatform
}:

rustPlatform.buildRustPackage rec {
pname = "trust-dns";
version = "0.22.0";

src = fetchFromGitHub {
owner = "bluejekyll";
repo = "trust-dns";
rev = "v${version}";
sha256 = "sha256-b9tK1JbTwB3ZuRPh0wb3cOFj9dMW7URXIaFzUq0Yipw=";
};
cargoHash = "sha256-mpobdeTRWJzIEmhwtcM6UE66qRD5ot/0yLeQM6Tec+0=";

buildInputs = [ openssl ];
nativeBuildInputs = [ pkg-config ];

# tests expect internet connectivity to query real nameservers like 8.8.8.8
doCheck = false;

meta = with lib; {
description = "A Rust based DNS client, server, and resolver";
homepage = "https://trust-dns.org/";
maintainers = with maintainers; [ colinsane ];
platforms = platforms.linux;
license = with licenses; [ asl20 mit ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26460,6 +26460,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};

trust-dns = callPackage ../servers/dns/trust-dns { };

tunctl = callPackage ../os-specific/linux/tunctl { };

twa = callPackage ../tools/networking/twa { };
Expand Down

0 comments on commit fdc0bb1

Please sign in to comment.