mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-16 18:15:58 +01:00
Nix: revamp
This commit is contained in:
parent
a0278ab718
commit
32ab590cf1
3 changed files with 17 additions and 3 deletions
|
@ -2,8 +2,8 @@
|
||||||
title: Contributing and Debugging
|
title: Contributing and Debugging
|
||||||
---
|
---
|
||||||
|
|
||||||
Everything needed to build and debug Hyprland is included inside the provided
|
Everything needed to build and debug Hyprland and other hyprwm programs is
|
||||||
`devShell`.
|
included inside the provided `devShell`s.
|
||||||
|
|
||||||
To use it in the cloned repo, simply run `nix develop`.
|
To use it in the cloned repo, simply run `nix develop`.
|
||||||
|
|
||||||
|
@ -12,6 +12,11 @@ To use it in the cloned repo, simply run `nix develop`.
|
||||||
A debug build is already provided through
|
A debug build is already provided through
|
||||||
`hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland-debug`.
|
`hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland-debug`.
|
||||||
|
|
||||||
|
Most hyprwm apps also provide their own `-debug` versions. For those that don't,
|
||||||
|
one can build the debug version from the CLI by using
|
||||||
|
[overrideAttrs](../Options-Overrides/#using-nix-repl) with
|
||||||
|
`cmakeBuildType = "debug";`.
|
||||||
|
|
||||||
## Bisecting an issue
|
## Bisecting an issue
|
||||||
|
|
||||||
Follow the
|
Follow the
|
||||||
|
|
|
@ -51,3 +51,12 @@ nix-repl> :bl outputs.packages.x86_64-linux.hyprland.override { /* flag here */
|
||||||
```
|
```
|
||||||
|
|
||||||
Then you can run Hyprland from the built path.
|
Then you can run Hyprland from the built path.
|
||||||
|
|
||||||
|
You can also use `overrideAttrs` to override `mkDerivation`'s arguments, such as
|
||||||
|
`cmakeBuildType`:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
$ nix repl
|
||||||
|
nix-repl> :lf git+https://github.com/hyprwm/Hyprland?submodules=1
|
||||||
|
nix-repl> :bl outputs.packages.x86_64-linux.hyprland.overrideAttrs (self: super: { cmakeBuildType = "debug" })
|
||||||
|
```
|
||||||
|
|
|
@ -35,7 +35,7 @@ For more options, see
|
||||||
|
|
||||||
For other NixOS options, see [Hyprland on NixOS](./Hyprland-on-NixOS).
|
For other NixOS options, see [Hyprland on NixOS](./Hyprland-on-NixOS).
|
||||||
|
|
||||||
## Home-manager module
|
## Home Manager module
|
||||||
|
|
||||||
Read [Hyprland on Home Manager](./Hyprland-on-Home-Manager).
|
Read [Hyprland on Home Manager](./Hyprland-on-Home-Manager).
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue