about summary refs log tree commit diff
path: root/pkgs/by-name/at/atuin/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/at/atuin/package.nix')
-rw-r--r--pkgs/by-name/at/atuin/package.nix12
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/by-name/at/atuin/package.nix b/pkgs/by-name/at/atuin/package.nix
index 9234e8866752..f863e578a076 100644
--- a/pkgs/by-name/at/atuin/package.nix
+++ b/pkgs/by-name/at/atuin/package.nix
@@ -3,9 +3,8 @@
 , fetchFromGitHub
 , installShellFiles
 , rustPlatform
-, libiconv
 , buildPackages
-, darwin
+, apple-sdk_11
 , nixosTests
 }:
 
@@ -22,7 +21,7 @@ rustPlatform.buildRustPackage rec {
 
   # TODO: unify this to one hash because updater do not support this
   cargoHash =
-    if stdenv.isLinux
+    if stdenv.hostPlatform.isLinux
     then "sha256-K4Vw/d0ZOROWujWr76I3QvfKefLhXLeFufUrgStAyjQ="
     else "sha256-8NAfE7cGFT64ntNXK9RT0D/MbDJweN7vvsG/KlrY4K4=";
 
@@ -35,11 +34,8 @@ rustPlatform.buildRustPackage rec {
 
   nativeBuildInputs = [ installShellFiles ];
 
-  buildInputs = lib.optionals stdenv.isDarwin [
-    libiconv
-    darwin.apple_sdk_11_0.frameworks.AppKit
-    darwin.apple_sdk_11_0.frameworks.Security
-    darwin.apple_sdk_11_0.frameworks.SystemConfiguration
+  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
+    apple-sdk_11
   ];
 
   preBuild = ''