Last active
May 12, 2025 05:21
-
-
Save player131007/dcc1d750a2b4c0245a6487d636bd9e37 to your computer and use it in GitHub Desktop.
minimal ntpsec file for nixpkgs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tests/libntp/decodenetnum.c b/tests/libntp/decodenetnum.c | |
index a681e4f73..0f1257241 100644 | |
--- a/tests/libntp/decodenetnum.c | |
+++ b/tests/libntp/decodenetnum.c | |
@@ -17,6 +17,7 @@ TEST_TEAR_DOWN(decodenetnum) {} | |
TEST(decodenetnum, Services) { | |
+ TEST_IGNORE_MESSAGE("/etc/services doesn't exist in the build sandbox, resolving for \"ntp\" will fail"); | |
struct addrinfo *res; | |
int ret; | |
@@ -60,6 +61,7 @@ TEST(decodenetnum, IPv4AddressWithPort) { | |
/* test for named port */ | |
TEST(decodenetnum, IPv4AddressWithPort2) { | |
+ TEST_IGNORE_MESSAGE("/etc/services doesn't exist in the build sandbox, resolving for \"ntp\" will fail"); | |
const char *str = "192.168.2.2:ntp"; | |
sockaddr_u actual; | |
int ret; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
stdenv, | |
wafHook, | |
fetchFromGitLab, | |
python3, | |
m4, | |
bison, | |
openssl, | |
}: | |
stdenv.mkDerivation (finalAttrs: { | |
pname = "ntpsec"; | |
version = "1.2.4"; | |
src = fetchFromGitLab { | |
owner = "NTPsec"; | |
repo = "ntpsec"; | |
tag = "NTPsec_${builtins.replaceStrings ["."] ["_"] finalAttrs.version}"; | |
hash = "sha256-+lZEoN6iaNYJR63bYDZdogQPyeFAMktCMwPHIfWvQ9Q="; | |
}; | |
nativeBuildInputs = [ | |
wafHook | |
python3 | |
m4 | |
bison | |
openssl | |
]; | |
patches = [ | |
./fix-tests-nixos.patch | |
]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment