1 { lib, stdenv, fetchFromGitHub, rustPlatform, Security, SystemConfiguration }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
8 owner = "lukaspustina";
11 sha256 = "sha256-6jn9jOCh96d9y2l1OZ5hgxg7sYXPUFzJiiT95OR7lD0=";
14 cargoHash = "sha256-d2JYT/eJaGm8pfmjsuSZiQxlzcsypFH53F/9joW0J6I=";
16 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
21 CARGO_CRATE_NAME = "mhost";
26 description = "Modern take on the classic host DNS lookup utility including an easy to use and very fast Rust lookup library";
27 homepage = "https://github.com/lukaspustina/mhost";
28 license = with licenses; [ asl20 /* or */ mit ];
29 maintainers = [ maintainers.mgttlinger ];
30 mainProgram = "mhost";