about summary refs log tree commit diff
path: root/pkgs/by-name/nt/ntpd-rs/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/nt/ntpd-rs/package.nix')
-rw-r--r--pkgs/by-name/nt/ntpd-rs/package.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/by-name/nt/ntpd-rs/package.nix b/pkgs/by-name/nt/ntpd-rs/package.nix
index 43df56ac024e..df3089013d86 100644
--- a/pkgs/by-name/nt/ntpd-rs/package.nix
+++ b/pkgs/by-name/nt/ntpd-rs/package.nix
@@ -25,7 +25,9 @@ rustPlatform.buildRustPackage rec {
 
   cargoHash = "sha256-9HLbGC6j0Wq/lG//CeEAfnYzlGG14CnDpmluL1moHWQ=";
 
-  buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk_11_0.frameworks.Security ];
+  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
+    darwin.apple_sdk_11_0.frameworks.Security
+  ];
   nativeBuildInputs = [
     pandoc
     installShellFiles
@@ -60,7 +62,7 @@ rustPlatform.buildRustPackage rec {
 
   passthru = {
     tests = {
-      nixos = lib.optionalAttrs stdenv.isLinux nixosTests.ntpd-rs;
+      nixos = lib.optionalAttrs stdenv.hostPlatform.isLinux nixosTests.ntpd-rs;
       version = testers.testVersion {
         package = ntpd-rs;
         inherit version;
@@ -84,6 +86,6 @@ rustPlatform.buildRustPackage rec {
     ];
     mainProgram = "ntp-ctl";
     # note: Undefined symbols for architecture x86_64: "_ntp_adjtime"
-    broken = stdenv.isDarwin && stdenv.isx86_64;
+    broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64;
   };
 }