mirror of
https://github.com/hyprspace/hyprspace.git
synced 2026-09-14 11:06:22 +05:00
32 lines
732 B
Markdown
32 lines
732 B
Markdown
# Hacking
|
|
|
|
## Developer Environment
|
|
|
|
Hyprspace is built with [Nix](https://nixos.org). The Hyprspace flake includes a devShell with all the tools needed for development.
|
|
|
|
To use it, simply run:
|
|
|
|
```shell-session
|
|
$ nix develop
|
|
```
|
|
|
|
You can also use [direnv](https://direnv.net).
|
|
|
|
```shell-session
|
|
$ direnv allow
|
|
```
|
|
|
|
## Building
|
|
|
|
To build Hyprspace for testing during development, you first need to generate the [configuration schema](config-schema.html) code. This is always done automatically upon entering the devShell. If you made changes to the config schema, you can regenerate the Go code (requires Nix):
|
|
|
|
```shell-session
|
|
$ go generate ./schema
|
|
```
|
|
|
|
Then you can build the binary as usual:
|
|
|
|
```shell-session
|
|
$ go build
|
|
```
|