about summary refs log tree commit diff
path: root/third_party
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2020-04-19T22·37+0100
committerVincent Ambo <tazjin@google.com>2020-04-19T22·37+0100
commit1ab6a8f263bcf26d045138060a414ebc410b50e7 (patch)
tree44043d0f7075f305160ddd90083d9a5488e8d6ba /third_party
parent688175c1f70f20a23ebfe566efb15deb66735a55 (diff)
fix(third_party/honk): Create a fake $HOME r/638
Diffstat (limited to 'third_party')
-rw-r--r--third_party/honk/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/honk/default.nix b/third_party/honk/default.nix
index 8248bd6a8e..fb3e80c452 100644
--- a/third_party/honk/default.nix
+++ b/third_party/honk/default.nix
@@ -11,6 +11,11 @@ pkgs.stdenv.mkDerivation rec {
     sha256 = "0fj1ybhsra626q5vy1sy9aigxx5rjda5mgq74m7kzw7an4z2a67m";
   };
 
+  # Go tooling needs $HOME to exist because, well, who knows.
+  preBuild = ''
+    mkdir home && export HOME=$PWD/home
+  '';
+
   installPhase = ''
     install -D honk $out/bin/honk
     install -D docs/honk.1 $out/share/man/man1/honk.1