@@ -0,0 +1,36 @@
1+{ lib
2+, rustPlatform
3+, fetchFromGitHub
4+}:
5+
6+rustPlatform.buildRustPackage rec {
7+ pname = "aardvark-dns";
8+ version = "1.0.0";
9+
10+ src = fetchFromGitHub {
11+ owner = "containers";
12+ repo = pname;
13+ rev = "v${version}";
14+ sha256 = "sha256-RFA/C0Q4u1WMQ0bsFKbkyzar0vDRfQ6YPpu/Np3xXWA=";
15+ };
16+
17+ cargoVendorDir = "vendor";
18+
19+ preBuild = ''
20+ rm build.rs
21+
22+ export \
23+ VERGEN_BUILD_SEMVER="${version}" \
24+ VERGEN_BUILD_TIMESTAMP="$SOURCE_DATE_EPOCH" \
25+ VERGEN_GIT_SHA="${src.rev}" \
26+ VERGEN_RUSTC_HOST_TRIPLE=""
27+ '';
28+
29+ meta = with lib; {
30+ description = "Authoritative dns server for A/AAAA container records";
31+ homepage = "https://github.com/containers/aardvark-dns";
32+ license = licenses.asl20;
33+ maintainers = with maintainers; [ ] ++ teams.podman.members;
34+ platforms = platforms.linux;
35+ };
36+}