mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
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.
This commit is contained in:
@ -58,7 +58,12 @@
|
||||
formatter.${system} = pkgs-stable.alejandra;
|
||||
|
||||
# Our supported systems are the same supported systems as the Zig binaries.
|
||||
}) (builtins.attrNames zig.packages));
|
||||
}) (builtins.attrNames zig.packages))
|
||||
// {
|
||||
overlays.default = final: prev: {
|
||||
ghostty = self.packages.${prev.system}.default;
|
||||
};
|
||||
};
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = ["https://ghostty.cachix.org"];
|
||||
|
Reference in New Issue
Block a user