about summary refs log tree commit diff
path: root/pkgs/by-name/cr/crabfit-api/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/cr/crabfit-api/package.nix')
-rw-r--r--pkgs/by-name/cr/crabfit-api/package.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/by-name/cr/crabfit-api/package.nix b/pkgs/by-name/cr/crabfit-api/package.nix
index c3d396a03581..7012a40ea5b2 100644
--- a/pkgs/by-name/cr/crabfit-api/package.nix
+++ b/pkgs/by-name/cr/crabfit-api/package.nix
@@ -58,7 +58,7 @@ rustPlatform.buildRustPackage rec {
       openssl
       sqlite
     ]
-    ++ lib.optionals stdenv.isDarwin [
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [
       darwin.apple_sdk.frameworks.CoreFoundation
       darwin.apple_sdk.frameworks.Security
       darwin.apple_sdk.frameworks.SystemConfiguration
@@ -68,7 +68,9 @@ rustPlatform.buildRustPackage rec {
 
   PROTOC = "${protobuf}/bin/protoc";
 
-  passthru.tests = [ nixosTests.crabfit ];
+  passthru.tests = {
+    inherit (nixosTests) crabfit;
+  };
 
   meta = {
     description = "Enter your availability to find a time that works for everyone";