Commit b16df602 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

aligator: fix for gbenchmark < 1.9.5

parent a9dffbe2
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -36,6 +36,20 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-8DO+lfM4mk4bA/IOEJlLaOp9snCUBHiw7RRcYEwJC7c=";
  };

  # aligator 0.19.0 expect gbenchmark 1.9.5, which is not merged yet:
  # https://github.com/NixOS/nixpkgs/pull/506375
  postPatch = ''
    substituteInPlace \
        bench/lqr.cpp \
        bench/se2-car.cpp \
        bench/talos-walk.cpp \
        bench/croc-talos-arm.cpp \
        bench/gar-riccati.cpp \
      --replace-fail \
        "benchmark::Benchmark" \
        "benchmark::internal::Benchmark"
  '';

  outputs = [
    "doc"
    "out"