St: Difference between revisions
imported>Artturin mention other suckless software |
imported>Artturin add troubleshooting |
||
| Line 155: | Line 155: | ||
})) | })) | ||
];</syntaxhighlight> | ];</syntaxhighlight> | ||
== Troubleshooting == | |||
=== See files after patching === | |||
{{file|st-test.nix|nix|<nowiki> | |||
with import <nixpkgs> {}; | |||
(st.overrideAttrs (oldAttrs: rec { | |||
buildInputs = oldAttrs.buildInputs ++ [ harfbuzz ]; | |||
patches = [ | |||
(fetchpatch { | |||
url = "https://st.suckless.org/patches/ligatures/0.8.3/st-ligatures-20200430-0.8.3.diff"; | |||
sha256 = "18fllssg5d5gik1x0ppz232vdphr0y2j5z8lhs5j9zjs8m9ria5w"; | |||
}) | |||
]; | |||
})) | |||
</nowiki>}} | |||
<syntaxhighlight lang="sh"> | |||
nix-shell st-test.nix | |||
unpackPhase | |||
ls | |||
cd theunpackeddir | |||
patchPhase | |||
</syntaxhighlight> | |||
[https://nixos.org/manual/nixpkgs/stable/#sec-stdenv-phases Additional phases] | |||