Skip to content

Commit

Permalink
build(nix): set HOME and GOCACHE for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed May 8, 2024
1 parent a5470a4 commit bf93db8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
depsBuildBuild ? [],
nativeBuildInputs ? [],
nativeCheckInputs ? [],
configurePhase ? "",
...
} @ args:
with pkgs.lib; let
Expand All @@ -99,6 +100,13 @@
++ optional darwin2darwin pkgs.xcbuild.xcrun;
in
{
configurePhase =
configurePhase
+ ''
export HOME=$TMPDIR/home
export GOCACHE=$TMPDIR/go-cache
'';

buildInputs =
buildInputs
++ optional pkgs.stdenv.hostPlatform.isDarwin pkgs.libiconv;
Expand Down

0 comments on commit bf93db8

Please sign in to comment.