St: Difference between revisions
imported>Alexnortung Added notes on how to configure st when using dwm. |
No edit summary |
||
| (7 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{ | {{DISPLAYTITLE:st}} | ||
[[Category:Applications]] | [[Category:Applications]] | ||
| Line 44: | Line 44: | ||
Followed by: | Followed by: | ||
<syntaxhighlight> | <syntaxhighlight lang=console> | ||
$ nix-env -i -f my-custom-st | $ nix-env -i -f my-custom-st | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 56: | Line 56: | ||
To apply a patch you need to obtain the hash, the hash should be obtained with the following command | To apply a patch you need to obtain the hash, the hash should be obtained with the following command | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
$ nix-prefetch-url <url> | $ nix-prefetch-url <url> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
example | example | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
$ nix-prefetch-url https://st.suckless.org/patches/rightclickpaste/st-rightclickpaste-0.8.2.diff | $ nix-prefetch-url https://st.suckless.org/patches/rightclickpaste/st-rightclickpaste-0.8.2.diff | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 204: | Line 204: | ||
buildInputs = oldAttrs.buildInputs ++ [ harfbuzz ]; | buildInputs = oldAttrs.buildInputs ++ [ harfbuzz ]; | ||
# If you want it to be always up to date use fetchTarball instead of fetchFromGitHub | # If you want it to be always up to date use fetchTarball instead of fetchFromGitHub | ||
# src = | # src = builtins.fetchTarball { | ||
# url = "https://github.com/lukesmithxyz/st/archive/master.tar.gz"; | # url = "https://github.com/lukesmithxyz/st/archive/master.tar.gz"; | ||
# }; | # }; | ||
| Line 228: | Line 228: | ||
</nowiki>}} | </nowiki>}} | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="console"> | ||
nix-shell st-test.nix | $ nix-shell st-test.nix | ||
unpackPhase | $ unpackPhase | ||
ls | $ ls | ||
cd theunpackeddir | $ cd theunpackeddir | ||
patchPhase | $ patchPhase | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[https://nixos.org/manual/nixpkgs/stable/#sec-stdenv-phases Additional phases] | [https://nixos.org/manual/nixpkgs/stable/#sec-stdenv-phases Additional phases] | ||