Unverified Commit de907f60 authored by Daniel Nagy's avatar Daniel Nagy
Browse files

opengist: use writableTmpDirAsHomeHook

parent 6a8f6223
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
  moreutils,
  jq,
  git,
  writableTmpDirAsHomeHook,
}:
let
  # finalAttrs when 🥺 (buildGoModule does not support them)
@@ -52,16 +53,11 @@ buildGoModule {
    "-X github.com/thomiceli/opengist/internal/config.OpengistVersion=v${version}"
  ];

  # required for tests
  nativeCheckInputs = [
    git
    writableTmpDirAsHomeHook
  ];

  # required for tests to not try to write into $HOME and fail
  preCheck = ''
    export OG_OPENGIST_HOME=$(mktemp -d)
  '';

  doCheck = !stdenv.hostPlatform.isDarwin;

  checkPhase = ''