blob: 9acef3cd9342b83355fb81293f296050f83ce546 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage {
pname = "nsncd";
version = "1.4.1-unstable-2024-04-10";
src = fetchFromGitHub {
owner = "twosigma";
repo = "nsncd";
rev = "7605e330d5a313a8656e6fcaf1c10cd6b5cdd427";
hash = "sha256-Bd7qE9MP5coBCkr70TdoJfwYhQpdrn/zmN4KoARcaMI=";
};
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";
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"
];
meta = with lib; {
description = "Name service non-caching daemon";
mainProgram = "nsncd";
longDescription = ''
nsncd is a nscd-compatible daemon that proxies lookups, without caching.
'';
homepage = "https://github.com/twosigma/nsncd";
license = licenses.asl20;
maintainers = with maintainers; [
flokli
picnoir
];
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin;
};
}
|