Commit a17caeae authored by Emily's avatar Emily
Browse files

automaticcomponenttoolkit: use `writableTmpDirAsHomeHook`

parent 493eebd4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  lib,
  fetchFromGitHub,
  go,
  writableTmpDirAsHomeHook,
}:

stdenv.mkDerivation rec {
@@ -16,11 +17,13 @@ stdenv.mkDerivation rec {
    sha256 = "1r0sbw82cf9dbcj3vgnbd4sc1lklzvijic2z5wgkvs21azcm0yzh";
  };

  nativeBuildInputs = [ go ];
  nativeBuildInputs = [
    go
    writableTmpDirAsHomeHook
  ];

  buildPhase = ''
    cd Source
    export HOME=/tmp
    go build -o act *.go
  '';