3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/aardvark-dns/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
874 B
Nix
Raw Normal View History

2022-01-26 02:31:28 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "aardvark-dns";
version = "1.0.1";
2022-01-26 02:31:28 +00:00
src = fetchFromGitHub {
owner = "containers";
repo = pname;
rev = "v${version}";
sha256 = "sha256-6O/7GoGH0xNbTfIFeD5VLrifNFpHcxxG0bdq/YQb3Ew=";
2022-01-26 02:31:28 +00:00
};
cargoHash = "sha256-YdHIyCJ00MKH8PL0osOqQIMwaws3+cOUwvhvA8mOp84=";
2022-01-26 02:31:28 +00:00
preBuild = ''
rm build.rs
export \
VERGEN_BUILD_SEMVER="${version}" \
VERGEN_BUILD_TIMESTAMP="$SOURCE_DATE_EPOCH" \
VERGEN_GIT_SHA="${src.rev}" \
VERGEN_RUSTC_HOST_TRIPLE=""
'';
meta = with lib; {
description = "Authoritative dns server for A/AAAA container records";
homepage = "https://github.com/containers/aardvark-dns";
license = licenses.asl20;
maintainers = with maintainers; [ ] ++ teams.podman.members;
platforms = platforms.linux;
};
}