fix(nix): Add Appkit to the package build (#1358)

This commit is contained in:
Patrick Jackson 2023-10-30 02:18:26 -06:00 committed by GitHub
parent 21f3f64ad5
commit 74c78ac2d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -12,6 +12,7 @@
libiconv, libiconv,
Security, Security,
SystemConfiguration, SystemConfiguration,
AppKit,
}: }:
rustPlatform.buildRustPackage { rustPlatform.buildRustPackage {
name = "atuin"; name = "atuin";
@ -26,7 +27,7 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = [installShellFiles]; nativeBuildInputs = [installShellFiles];
buildInputs = lib.optionals stdenv.isDarwin [libiconv Security SystemConfiguration]; buildInputs = lib.optionals stdenv.isDarwin [libiconv Security SystemConfiguration AppKit];
postInstall = '' postInstall = ''
installShellCompletion --cmd atuin \ installShellCompletion --cmd atuin \

View file

@ -17,7 +17,7 @@
pkgs = nixpkgs.outputs.legacyPackages.${system}; pkgs = nixpkgs.outputs.legacyPackages.${system};
in { in {
packages.atuin = pkgs.callPackage ./atuin.nix { packages.atuin = pkgs.callPackage ./atuin.nix {
inherit (pkgs.darwin.apple_sdk.frameworks) Security SystemConfiguration; inherit (pkgs.darwin.apple_sdk.frameworks) Security SystemConfiguration AppKit;
}; };
packages.default = self.outputs.packages.${system}.atuin; packages.default = self.outputs.packages.${system}.atuin;