blob: 0c94a9506d2c080ce8037ee2071116e292e26bdf (
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
|
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, stdenv
, pkg-config
, openssl
, pandoc
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "dogedns";
version = "0.2.6";
src = fetchFromGitHub {
owner = "Dj-Codeman";
repo = "doge";
rev = "6dd0383f31c096bfe2b6918c36b6e2c48414e753";
hash = "sha256-cvqDSTHFf/le2jItGTSkAGURj64WRvOmMRI+vFH0/50=";
};
cargoHash = "sha256-v9AuX7FZfy18yu4P9ovHsL5AQIYhPa8NEsMziEeHCJ8=";
patches = [
# remove date info to make the build reproducible
# remove commit hash to avoid dependency on git and the need to keep `.git`
./remove-date-info.patch
];
nativeBuildInputs = [ installShellFiles pandoc ]
++ lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
postInstall = ''
installShellCompletion completions/doge.{bash,fish,zsh}
installManPage ./target/man/*.1
'';
meta = with lib; {
description = "Reviving A command-line DNS client";
homepage = "https://github.com/Dj-Codeman/doge";
license = licenses.eupl12;
mainProgram = "doge";
maintainers = with maintainers; [ aktaboot ];
};
}
|