Dwm: Difference between revisions
imported>Hypnosis2839 m clean up formatting |
imported>Hypnosis2839 add info about custom source trees |
||
Line 10: | Line 10: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Creating override == | == Creating an override == | ||
=== Patching dwm === | |||
To patch dwm, override <code>services.xserver.windowManager.dwm.package</code> as below: | To patch dwm, override <code>services.xserver.windowManager.dwm.package</code> as below: | ||
Line 30: | Line 31: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Using custom sources === | |||
If you have a locally stored source tree for dwm with changes already applied, you can use that instead: | |||
<syntaxhighlight lang="nix"> | |||
services.xserver.windowManager.dwm.package = pkgs.dwm.overrideAttrs { | |||
src = ./path/to/dwm/source/tree; | |||
}; | |||
</syntaxhighlight> | |||
Alternatively, you can set <code>src</code> to [https://nixos.org/manual/nixpkgs/stable/#chap-pkgs-fetchers the output of a fetcher], if you have the source tree stored online. | |||
== See also == | == See also == |