Merge pull request #251484 from fpletz/pkgs/ntpd-rs-0.3.7

authored by Franz Pletz and committed by GitHub 41781066 70508e02

+47
+45
pkgs/tools/networking/ntpd-rs/default.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + }: 5 + 6 + rustPlatform.buildRustPackage rec { 7 + pname = "ntpd-rs"; 8 + version = "0.3.7"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "pendulum-project"; 12 + repo = "ntpd-rs"; 13 + rev = "v${version}"; 14 + hash = "sha256-AUCzsveG9U+KxYO/4LGmyCPkR+w9pGDA/vTzMAGiVuI="; 15 + }; 16 + 17 + cargoHash = "sha256-6FUVkr3uock43ZBHuMEVIZ5F8Oh8wMifh2EokMWv4hU="; 18 + 19 + checkFlags = [ 20 + # doesn't find the testca 21 + "--skip=keyexchange::tests::key_exchange_roundtrip" 22 + # seems flaky 23 + "--skip=algorithm::kalman::peer::tests::test_offset_steering_and_measurements" 24 + # needs networking 25 + "--skip=hwtimestamp::tests::get_hwtimestamp" 26 + ]; 27 + 28 + postInstall = '' 29 + install -vDt $out/lib/systemd/system pkg/common/ntpd-rs.service 30 + 31 + for testprog in demobilize-server rate-limit-server nts-ke nts-ke-server peer-state simple-daemon; do 32 + moveToOutput bin/$testprog "$tests" 33 + done 34 + ''; 35 + 36 + outputs = [ "out" "tests" ]; 37 + 38 + meta = with lib; { 39 + description = "A full-featured implementation of the Network Time Protocol"; 40 + homepage = "https://tweedegolf.nl/en/pendulum"; 41 + changelog = "https://github.com/pendulum-project/ntpd-rs/blob/v${version}/CHANGELOG.md"; 42 + license = with licenses; [ mit /* or */ asl20 ]; 43 + maintainers = with maintainers; [ fpletz ]; 44 + }; 45 + }
+2
pkgs/top-level/all-packages.nix
··· 1890 1890 1891 1891 nominatim = callPackage ../servers/nominatim { }; 1892 1892 1893 + ntpd-rs = callPackage ../tools/networking/ntpd-rs { }; 1894 + 1893 1895 ocs-url = libsForQt5.callPackage ../tools/misc/ocs-url { }; 1894 1896 1895 1897 openbugs = pkgsi686Linux.callPackage ../applications/science/machine-learning/openbugs { };