14 rustPlatform.buildRustPackage rec {
16 version = "unstable-2021-10-07";
18 src = fetchFromGitHub {
21 rev = "721440b12ef01a812abe5dc6ced69af6e221fad5";
22 sha256 = "sha256-y3T0vXg7631FZ4bzcbQjz3Buui/DFxh9LG8BZWwynp0=";
26 # remove date info to make the build reproducible
27 # remove commit hash to avoid dependency on git and the need to keep `.git`
28 ./remove-date-info.patch
35 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
37 lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
38 ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
46 lockFile = ./Cargo.lock;
48 "mutagen-0.2.0" = "sha256-FnSeNI9lAcxonRFTu7wnP/M/d5UbMzSZ97w+mUqoEg8=";
52 dontUseJustBuild = true;
53 dontUseJustCheck = true;
54 dontUseJustInstall = true;
57 # update Cargo.lock to work with openssl 3
58 ln -sf ${./Cargo.lock} Cargo.lock
66 installShellCompletion completions/dog.{bash,fish,zsh}
67 installManPage ./target/man/*.1
71 description = "Command-line DNS client";
72 homepage = "https://dns.lookup.dog";
73 license = licenses.eupl12;
74 maintainers = with maintainers; [ figsoda ];