fup: add cheddar to PATH for nix derivation

This ensures that we always have syntax highlighting available.

For people using it directly, it's their responsibility to make sure that
cheddar is available in their path, if they want syntax highlighting.
This commit is contained in:
Luke Granger-Brown 2021-03-21 19:06:38 +00:00
parent c187956f19
commit 5cd85b03db

View file

@ -14,8 +14,13 @@ pkgs.buildGoModule {
nativeBuildInputs = [ nativeBuildInputs = [
depot.third_party.cheddar depot.third_party.cheddar
pkgs.makeWrapper
]; ];
postInstall = ''
wrapProgram $out/bin/fup --prefix PATH : ${lib.makeBinPath [ depot.third_party.cheddar ]}
'';
vendorSha256 = "sha256:0myd1p61q777ybbwdz8k4nbchh2hv1yr8008061m3gc44s3gsphx"; vendorSha256 = "sha256:0myd1p61q777ybbwdz8k4nbchh2hv1yr8008061m3gc44s3gsphx";
meta = with pkgs.lib; { meta = with pkgs.lib; {