Files
nixpkgs/pkgs/by-name/do/dogedns/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.5 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
stdenv,
pkg-config,
openssl,
pandoc,
}:
rustPlatform.buildRustPackage rec {
pname = "dogedns";
version = "0.2.9";
src = fetchFromGitHub {
owner = "Dj-Codeman";
repo = "doge";
rev = "v${version}";
hash = "sha256-SeC/GZ1AeEqRzxWc4oJ6JOvXfn3/LRcQz9uWXXqdTqU=";
};
cargoHash = "sha256-vLdfmaIOSxNqs1Hq6NJMA8HDZas4E9rc+VHnFSlX/wg=";
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
];
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"
];
nativeBuildInputs = [
installShellFiles
pandoc
]
++ lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
postInstall = ''
installShellCompletion completions/doge.{bash,fish,zsh}
installManPage ./target/man/*.1
'';
meta = {
description = "Reviving a command-line DNS client";
homepage = "https://github.com/Dj-Codeman/doge";
license = lib.licenses.eupl12;
mainProgram = "doge";
maintainers = with lib.maintainers; [ aktaboot ];
};
}