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:
Mitchell Hashimoto
2024-12-29 07:14:12 -08:00
committed by GitHub

View File

@ -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"];