ntpd-rs: fix missing Security framework on darwin

This commit is contained in:
Elian Doran 2024-05-19 11:43:33 +03:00
parent 2fc8b1e83f
commit c412545630
No known key found for this signature in database
2 changed files with 10 additions and 1 deletions

View File

@ -1,8 +1,10 @@
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, installShellFiles
, pandoc
, Security
}:
rustPlatform.buildRustPackage rec {
@ -18,6 +20,9 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-iZuDNFy8c2UZUh3J11lEtfHlDFN+qPl4iZg+ps7AenE=";
buildInputs = lib.optionals stdenv.isDarwin ([
Security
]);
nativeBuildInputs = [ pandoc installShellFiles ];
postPatch = ''
@ -53,5 +58,7 @@ rustPlatform.buildRustPackage rec {
changelog = "https://github.com/pendulum-project/ntpd-rs/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit /* or */ asl20 ];
maintainers = with maintainers; [ fpletz ];
# note: Undefined symbols for architecture x86_64: "_ntp_adjtime"
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}

View File

@ -1973,7 +1973,9 @@ with pkgs;
npm-check-updates = callPackage ../tools/package-management/npm-check-updates { };
ntpd-rs = callPackage ../tools/networking/ntpd-rs { };
ntpd-rs = darwin.apple_sdk_11_0.callPackage ../tools/networking/ntpd-rs {
inherit (darwin.apple_sdk_11_0.frameworks) Security;
};
ocs-url = libsForQt5.callPackage ../tools/misc/ocs-url { };