mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 04:13:12 +00:00
ntpd-rs: fix missing Security framework on darwin
This commit is contained in:
parent
2fc8b1e83f
commit
c412545630
@ -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;
|
||||
};
|
||||
}
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user