nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.7 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 rustPlatform, 6 nix-update-script, 7 nixosTests, 8}: 9 10let 11 version = "1.5.2"; 12in 13 14rustPlatform.buildRustPackage { 15 pname = "nsncd"; 16 inherit version; 17 18 src = fetchFromGitHub { 19 owner = "twosigma"; 20 repo = "nsncd"; 21 tag = "v${version}"; 22 hash = "sha256-HNg2pf6dUQW95B8x/xWa53+GZVWzpTMRVeqWT3dp/M8="; 23 }; 24 25 cargoHash = "sha256-kjxRhrgKPLCKWc3/gOvdcmQX7IdxFLuwcV7DRZIte78="; 26 27 checkFlags = [ 28 # Relies on the test environment to be able to resolve "localhost" 29 # on IPv4. That's not the case in the Nix sandbox somehow. Works 30 # when running cargo test impurely on a (NixOS|Debian) machine. 31 "--skip=ffi::test_gethostbyname2_r" 32 33 # Relies on /etc/services to be present? 34 "--skip=handlers::test::test_handle_getservbyname_name" 35 "--skip=handlers::test::test_handle_getservbyname_name_proto" 36 "--skip=handlers::test::test_handle_getservbyport_port" 37 "--skip=handlers::test::test_handle_getservbyport_port_proto" 38 "--skip=handlers::test::test_handle_getservbyport_port_proto_aliases" 39 ]; 40 41 meta = { 42 description = "Name service non-caching daemon"; 43 mainProgram = "nsncd"; 44 longDescription = '' 45 nsncd is a nscd-compatible daemon that proxies lookups, without caching. 46 ''; 47 homepage = "https://github.com/twosigma/nsncd"; 48 license = lib.licenses.asl20; 49 maintainers = with lib.maintainers; [ 50 flokli 51 picnoir 52 ]; 53 # never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs 54 broken = stdenv.hostPlatform.isDarwin; 55 }; 56 57 passthru = { 58 tests.nscd = nixosTests.nscd; 59 updateScript = nix-update-script { }; 60 }; 61}