Commit b528eac1 authored by Luka Blaskovic's avatar Luka Blaskovic Committed by Alyssa Ross
Browse files

watchman: fix build with rustc >= 1.79

parent 4c8ffba1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
, fb303
, fbthrift
, fetchFromGitHub
, fetchpatch
, fizz
, fmt_8
, folly
@@ -91,6 +92,14 @@ stdenv.mkDerivation rec {
    lockFile = ./Cargo.lock;
  };

  patches = [
    # fix build with rustc >=1.79
    (fetchpatch {
      url = "https://github.com/facebook/watchman/commit/c3536143cab534cdd9696eb3e2d03c4ac1e2f883.patch";
      hash = "sha256-lpGr5H28gfVXkWNdfDo4SCbF/p5jB4SNlHj6km/rfw4=";
    })
  ];

  postPatch = ''
    patchShebangs .
    cp ${./Cargo.lock} ${cargoRoot}/Cargo.lock