Commit 63eee198 authored by Pol Dellaiera's avatar Pol Dellaiera
Browse files

ripasso-cursive: use `writableTmpDirAsHomeHook`

parent f2e2e99e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  installShellFiles,
  pkg-config,
  python3,
  writableTmpDirAsHomeHook,

  # buildInputs
  libgpg-error,
@@ -44,6 +45,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
    pkg-config
    python3
    rustPlatform.bindgenHook
    writableTmpDirAsHomeHook
  ];

  buildInputs = [
@@ -54,10 +56,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
    xorg.libxcb
  ];

  preCheck = ''
    export HOME=$(mktemp -d)
  '';

  checkFlags = lib.optionals stdenv.hostPlatform.isDarwin [
    # Fails in the darwin sandbox with:
    # Attempted to create a NULL object.