anchor.diff:  , fetchpatch
   , makeWrapper
   , cmake
  +, coreutils
   , git
   , davix
   , ftgl
   , gl2ps
   , glew
  +, gnugrep
  +, gnused
   , gsl
   , lapack
   , libX11
  
positive.code:     libtiff
      libpng
      nlohmann_json
      python.pkgs.numpy
      tbb
    ]
  
negative.code:         --set PYTHONPATH "$out/lib" \
          --set ${lib.optionalString stdenv.isDarwin "DY"}LD_LIBRARY_PATH "$out/lib"
      done
  
      # Make ldd and sed available to the ROOT executable
      wrapProgram "$out/bin/root" --prefix PATH : "${lib.makeBinPath [
        gnused # sed
        stdenv.cc # c++ ld etc.
        stdenv.cc.libc # ldd
      ]}"
  
      # Patch thisroot.{sh,csh,fish}
  
      # The main target of `thisroot.sh` is "bash-like shells",
      # but it also need to support Bash-less POSIX shell like dash,
      # as they are mentioned in `thisroot.sh`.
  
      # `thisroot.sh` would include commands `lsof` and `procps` since ROOT 6.28.
      # See https://github.com/root-project/root/pull/10332
  
      patchRcPathPosix "$out/bin/thisroot.sh" "${lib.makeBinPath [
        coreutils # dirname tail
        gnugrep # grep
        gnused # sed
        lsof # lsof # for ROOT (>=6.28)
        man # manpath
        procps # ps # for ROOT (>=6.28)
        which # which
      ]}"
      patchRcPathCsh "$out/bin/thisroot.csh" "${lib.makeBinPath [
        coreutils
        gnugrep
        gnused
        lsof # lsof # for ROOT (>=6.28)
        man
        which
      ]}"
      patchRcPathFish "$out/bin/thisroot.fish" "${lib.makeBinPath [
        coreutils
        man
        which
      ]}"
    '';
  
    setupHook = ./setup-hook.sh;
  