2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
2022-10-21 18:38:19 +00:00
|
|
|
}:
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
rustPlatform.buildRustPackage {
|
2022-10-21 18:38:19 +00:00
|
|
|
pname = "nsncd";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.4.1-unstable-2024-04-10";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-01-25 14:12:00 +00:00
|
|
|
owner = "twosigma";
|
2022-10-21 18:38:19 +00:00
|
|
|
repo = "nsncd";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "7605e330d5a313a8656e6fcaf1c10cd6b5cdd427";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-Bd7qE9MP5coBCkr70TdoJfwYhQpdrn/zmN4KoARcaMI=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-N7U9YsyGh8+fLT973GGZTmVXcdnWhpqkeYTxzJ0rzdo=";
|
|
|
|
|
|
|
|
# TOREMOVE when https://github.com/twosigma/nsncd/pull/119 gets merged.
|
|
|
|
cargoPatches = [ ./0001-cargo-bump.patch ];
|
|
|
|
|
|
|
|
# TOREMOVE when https://github.com/twosigma/nsncd/pull/119 gets merged.
|
|
|
|
RUSTFLAGS = "-A dead_code";
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
checkFlags = [
|
|
|
|
# Relies on the test environment to be able to resolve "localhost"
|
|
|
|
# on IPv4. That's not the case in the Nix sandbox somehow. Works
|
|
|
|
# when running cargo test impurely on a (NixOS|Debian) machine.
|
|
|
|
"--skip=ffi::test_gethostbyname2_r"
|
|
|
|
];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Name service non-caching daemon";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nsncd";
|
2022-10-21 18:38:19 +00:00
|
|
|
longDescription = ''
|
|
|
|
nsncd is a nscd-compatible daemon that proxies lookups, without caching.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/twosigma/nsncd";
|
|
|
|
license = licenses.asl20;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
flokli
|
|
|
|
picnoir
|
|
|
|
];
|
2022-12-17 10:02:37 +00:00
|
|
|
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|