Unverified Commit 5b516ba8 authored by Amadej Kastelic's avatar Amadej Kastelic
Browse files

superfile: fix build

parent 52050436
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
  writableTmpDirAsHomeHook,
  exiftool,
}:
let
  version = "1.3.2";
@@ -27,10 +29,19 @@ buildGoModule {
    "-w"
  ];

  nativeBuildInputs = [ exiftool ];

  nativeCheckInputs = [ writableTmpDirAsHomeHook ];

  # Upstream notes that this could be flakey, and it consistently fails for me.
  checkFlags = [ "-skip=^TestReturnDirElement/Sort_by_Date$" ];
  # Upstream notes that this could be flaky, and it consistently fails for me.
  checkFlags = [
    "-skip=^TestReturnDirElement/Sort_by_Date$"
  ]
  ++ lib.optionals stdenv.isDarwin [
    # Only failing on nix darwin. I suspect this is due to the way
    # darwin handles file permissions.
    "-skip=^TestCompressSelectedFiles"
  ];

  passthru.updateScript = nix-update-script { };