Skip to content

Commit d359231

Browse files
authored
Add default Nix overlay (#3847)
Adding an overlay allows to easily change the version of `ghostty` provided by `nixpkgs`: ```nix pkgs = import nixpkgs { inherit system; overlays = [ ghostty.overlays.default ]; } ``` Then, all references to `pkgs.ghostty` would refer to this project's package definition.
2 parents 9bef43f + 16f8135 commit d359231

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

flake.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@
5858
formatter.${system} = pkgs-stable.alejandra;
5959

6060
# Our supported systems are the same supported systems as the Zig binaries.
61-
}) (builtins.attrNames zig.packages));
61+
}) (builtins.attrNames zig.packages))
62+
// {
63+
overlays.default = final: prev: {
64+
ghostty = self.packages.${prev.system}.default;
65+
};
66+
};
6267

6368
nixConfig = {
6469
extra-substituters = ["https://ghostty.cachix.org"];

0 commit comments

Comments
 (0)