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

View file

@ -17,7 +17,7 @@
pkgs = nixpkgs.outputs.legacyPackages.${system};
in {
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;