anchor.diff:  , which
   , python3
   , rsync
  -, makeWrapper
   , qtbase
   , qtsvg
   , libGLU
  
positive.code:     bash ./configure.sh
    '';
  
    # Tell the program that the read-only and the read-write data locations
    # are different, and create the read-write one.
    # https://github.com/organicmaps/organicmaps/issues/2387
    postInstall = ''
      wrapProgram $out/bin/OMaps \
        --add-flags "-resources_path $out/share/organicmaps/data" \
        --add-flags '-data_path "''${XDG_DATA_HOME:-''${HOME}/.local/share}/OMaps"' \
        --run 'mkdir -p "''${XDG_DATA_HOME:-''${HOME}/.local/share}/OMaps"'
    '';
  
    meta = with lib; {
      # darwin: "invalid application of 'sizeof' to a function type"
      broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
  
negative.code: 
  mkDerivation rec {
    pname = "organicmaps";
    version = "2022.06.18-2";
  
    src = fetchFromGitHub {
      owner = "organicmaps";
      repo = "organicmaps";
      rev = "${version}-android";
      sha256 = "sha256-FlytRGiqGr9L5ZwL1slbPjagJKsleOXM8+loPmtfccI=";
      fetchSubmodules = true;
    };
  
  