blob: 0adca07798f265aa2401ec3a8ca50677de61b3f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, stdenv
, pkg-config
, openssl
, just
, pandoc
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "dogdns";
version = "unstable-2021-10-07";
src = fetchFromGitHub {
owner = "ogham";
repo = "dog";
rev = "721440b12ef01a812abe5dc6ced69af6e221fad5";
sha256 = "sha256-y3T0vXg7631FZ4bzcbQjz3Buui/DFxh9LG8BZWwynp0=";
};
nativeBuildInputs = [ installShellFiles just pandoc ]
++ lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
outputs = [ "out" "man" ];
postBuild = ''
just man
'';
cargoSha256 = "sha256-agepQVJbqbjzFbEBKbM7BNxc8FlklOrCsTgCAOcuptc=";
postInstall = ''
installShellCompletion completions/dog.{bash,fish,zsh}
installManPage ./target/man/*.1
'';
meta = with lib; {
description = "Command-line DNS client";
homepage = "https://dns.lookup.dog";
license = licenses.eupl12;
maintainers = with maintainers; [ bbigras ma27 ];
mainProgram = "dog";
};
}
|