mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-25 22:15:59 +01:00
Nix: revert to github: input url
This commit is contained in:
parent
52f23cf5c6
commit
028b419026
6 changed files with 22 additions and 22 deletions
|
@ -15,13 +15,21 @@ A debug build is already provided through
|
|||
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";`.
|
||||
`cmakeBuildType = "debug";` or `mesonBuildType = "debug";`, depending on the
|
||||
program.
|
||||
|
||||
## Bisecting an issue
|
||||
|
||||
Follow the
|
||||
[Bisecting an issue](https://wiki.hyprland.org/Crashes-and-Bugs/#bisecting-an-issue)
|
||||
guide. To build, run `nix build '.?submodules=1'`.
|
||||
guide. To build, run `nix build`.
|
||||
|
||||
{{< callout >}}
|
||||
|
||||
To build with Tracy support, modify `nix/default.nix` to enable the flag, then run
|
||||
`nix build '.?submodules=1'`.
|
||||
|
||||
{{< /callout >}}
|
||||
|
||||
To view logs, pass the `--print-build-logs` (`-L`) flag.
|
||||
|
||||
|
@ -45,8 +53,8 @@ For CMake:
|
|||
|
||||
```bash
|
||||
$ cmakeConfigurePhase # to run the CMake configure phase
|
||||
$ ninjaBuildPhase # to run the Ninja build phase
|
||||
$ ninjaInstallPhase # to run the Ninja install phase
|
||||
$ ninjaBuildPhase # to run the Ninja build phase (or buildPhase when ninja is not available)
|
||||
$ ninjaInstallPhase # to run the Ninja install phase (or installPhase when ninja is not available)
|
||||
```
|
||||
|
||||
For Meson:
|
||||
|
|
|
@ -58,7 +58,7 @@ Don't forget to replace `user@hostname` with your username and hostname!
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
};
|
||||
|
||||
outputs = {nixpkgs, home-manager, hyprland, ...}: {
|
||||
|
@ -103,11 +103,7 @@ make any adjustment for your setup.
|
|||
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
|
||||
|
||||
hyprland = (import flake-compat {
|
||||
# we're not using pkgs.fetchgit as that requires a hash to be provided
|
||||
src = builtins.fetchGit {
|
||||
url = "https://github.com/hyprwm/Hyprland.git";
|
||||
submodules = true;
|
||||
};
|
||||
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/main.tar.gz";
|
||||
}).defaultNix;
|
||||
in {
|
||||
wayland.windowManager.hyprland = {
|
||||
|
|
|
@ -66,7 +66,7 @@ this:
|
|||
# flake.nix
|
||||
|
||||
{
|
||||
inputs.hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||
inputs.hyprland.url = "github:hyprwm/Hyprland";
|
||||
# ...
|
||||
|
||||
outputs = {nixpkgs, ...} @ inputs: {
|
||||
|
@ -135,11 +135,7 @@ have to compile Hyprland yourself.
|
|||
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
|
||||
|
||||
hyprland = (import flake-compat {
|
||||
# we're not using pkgs.fetchgit as that requires a hash to be provided
|
||||
src = builtins.fetchGit {
|
||||
url = "https://github.com/hyprwm/Hyprland.git";
|
||||
submodules = true;
|
||||
};
|
||||
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/main.tar.gz";
|
||||
}).defaultNix;
|
||||
in {
|
||||
programs.hyprland = {
|
||||
|
|
|
@ -29,7 +29,7 @@ nix profile install nixpkgs#hyprland
|
|||
NOTE: Make sure to enable [Cachix](../Cachix) first.
|
||||
|
||||
```sh
|
||||
nix profile install git+https://github.com/hyprwm/Hyprland?submodules=1
|
||||
nix profile install github:hyprwm/Hyprland
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
|
|
|
@ -46,17 +46,17 @@ you can do it like this:
|
|||
|
||||
```nix
|
||||
$ nix repl
|
||||
nix-repl> :lf git+https://github.com/hyprwm/Hyprland?submodules=1
|
||||
nix-repl> :lf github:hyprwm/Hyprland
|
||||
nix-repl> :bl outputs.packages.x86_64-linux.hyprland.override { /* flag here */ }
|
||||
```
|
||||
|
||||
Then you can run Hyprland from the built path.
|
||||
|
||||
You can also use `overrideAttrs` to override `mkDerivation`'s arguments, such as
|
||||
`cmakeBuildType`:
|
||||
`mesonBuildType`:
|
||||
|
||||
```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" })
|
||||
nix-repl> :lf github:hyprwm/Hyprland
|
||||
nix-repl> :bl outputs.packages.x86_64-linux.hyprland.overrideAttrs (self: super: { mesonBuildType = "debug" })
|
||||
```
|
||||
|
|
|
@ -41,7 +41,7 @@ First, add the flake to your flake inputs:
|
|||
```nix
|
||||
{
|
||||
inputs = {
|
||||
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
|
||||
hyprland-plugins = {
|
||||
url = "github:hyprwm/hyprland-plugins";
|
||||
|
|
Loading…
Reference in a new issue