Unverified Commit 98cc168d authored by isabel's avatar isabel Committed by GitHub
Browse files

scrounge-ntfs: fix build (#437735)

parents eb45901d c9ffcb16
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -13,6 +13,13 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-HYrMIMTRPmgAac/vaZ1jaUFchyAl5B0quxgHH0DHJ84=";
  };

  env.NIX_CFLAGS_COMPILE = "-D_FILE_OFFSET_BITS=64";

  postPatch = ''
    substituteInPlace src/{list,ntfsx,scrounge}.c \
      --replace-fail "lseek64" "lseek"
  '';

  patches = [
    ./darwin.diff
  ];