Skip to content

Commit

Permalink
nix: Add wezterm package override for darwin
Browse files Browse the repository at this point in the history
Inspired by "Installing WezTerm from Git" on Discourse[1].

[1]: https://discourse.nixos.org/t/installing-wezterm-from-git/35156/12
  • Loading branch information
antoineco committed Sep 12, 2024
1 parent 8642393 commit 8f92fa5
Show file tree
Hide file tree
Showing 4 changed files with 7,475 additions and 2 deletions.
14 changes: 14 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@

formatter = forAllSystems ({ pkgs }: pkgs.nixfmt-rfc-style);

packages.aarch64-darwin = {
wezterm =
let
pkgs = nixpkgs.legacyPackages.aarch64-darwin;
in
with pkgs;
callPackage ./nix/pkgs/wezterm {
# error: package `bitstream-io v2.5.0` cannot be built because it requires
# rustc 1.79 or newer, while the currently active rustc version is 1.77.2
inherit (nixpkgs-unstable.legacyPackages.${system}) rustPlatform;
};
};

devShells = forAllSystems (
{ pkgs }:
{
Expand Down Expand Up @@ -131,6 +144,7 @@
colomar = nix-darwin.lib.darwinSystem {
specialArgs = {
inherit determinate neovim-overlay;
inherit (self) packages;
};
modules = [ ./nix/hosts/colomar ];
};
Expand Down
7 changes: 5 additions & 2 deletions nix/hosts/colomar/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, packages, ... }:
{
imports = [
../../modules/profiles/darwin.nix
Expand All @@ -23,7 +23,10 @@
};
};

environment.shells = [ pkgs.zsh ];
environment = {
shells = [ pkgs.zsh ];
systemPackages = [ packages.${pkgs.system}.wezterm ];
};

# Used for backwards compatibility, similarly to NixOS.
# Before changing this value read the documentation for this option
Expand Down
Loading

0 comments on commit 8f92fa5

Please sign in to comment.