2024-04-16 17:24:23 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
installShellFiles,
|
|
|
|
stdenv,
|
|
|
|
pkg-config,
|
|
|
|
openssl,
|
|
|
|
pandoc,
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dogedns";
|
2025-08-10 14:38:51 +00:00
|
|
|
version = "0.2.9";
|
2024-04-16 17:24:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Dj-Codeman";
|
|
|
|
repo = "doge";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = "v${version}";
|
2025-08-10 14:38:51 +00:00
|
|
|
hash = "sha256-SeC/GZ1AeEqRzxWc4oJ6JOvXfn3/LRcQz9uWXXqdTqU=";
|
2024-04-16 17:24:23 +02:00
|
|
|
};
|
|
|
|
|
2025-08-10 14:38:51 +00:00
|
|
|
cargoHash = "sha256-vLdfmaIOSxNqs1Hq6NJMA8HDZas4E9rc+VHnFSlX/wg=";
|
2024-04-16 17:24:23 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-09-06 16:03:35 +02:00
|
|
|
checkFlags = [
|
|
|
|
"--skip=options::test::all_mixed_3"
|
|
|
|
"--skip=options::test::domain_and_class"
|
|
|
|
"--skip=options::test::domain_and_class_lowercase"
|
|
|
|
"--skip=options::test::domain_and_nameserver"
|
|
|
|
"--skip=options::test::domain_and_single_domain"
|
|
|
|
"--skip=options::test::just_domain"
|
|
|
|
"--skip=options::test::just_named_domain"
|
|
|
|
"--skip=options::test::two_classes"
|
|
|
|
];
|
|
|
|
|
2024-04-16 17:24:23 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
pandoc
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
|
2025-04-14 09:29:14 -04:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
|
2024-04-16 17:24:23 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion completions/doge.{bash,fish,zsh}
|
|
|
|
installManPage ./target/man/*.1
|
|
|
|
'';
|
|
|
|
|
2024-09-06 16:03:35 +02:00
|
|
|
meta = {
|
|
|
|
description = "Reviving a command-line DNS client";
|
2024-04-16 17:24:23 +02:00
|
|
|
homepage = "https://github.com/Dj-Codeman/doge";
|
2024-09-06 16:03:35 +02:00
|
|
|
license = lib.licenses.eupl12;
|
2024-04-16 17:24:23 +02:00
|
|
|
mainProgram = "doge";
|
2024-09-06 16:03:35 +02:00
|
|
|
maintainers = with lib.maintainers; [ aktaboot ];
|
2024-04-16 17:24:23 +02:00
|
|
|
};
|
|
|
|
}
|