From 5cd85b03dbb01b6b0d21b0c1f62e8f2ed2a9ed48 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 21 Mar 2021 19:06:38 +0000 Subject: [PATCH] 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. --- web/fup/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/fup/default.nix b/web/fup/default.nix index 79dd7c77d1..84d23a991e 100644 --- a/web/fup/default.nix +++ b/web/fup/default.nix @@ -14,8 +14,13 @@ pkgs.buildGoModule { nativeBuildInputs = [ depot.third_party.cheddar + pkgs.makeWrapper ]; + postInstall = '' + wrapProgram $out/bin/fup --prefix PATH : ${lib.makeBinPath [ depot.third_party.cheddar ]} + ''; + vendorSha256 = "sha256:0myd1p61q777ybbwdz8k4nbchh2hv1yr8008061m3gc44s3gsphx"; meta = with pkgs.lib; {