anchor.diff:        url = "https://github.com/OpenOrienteering/mapper/commit/bc52aa567e90a58d6963b44d5ae1909f3f841508.patch";
         sha256 = "1bkckapzccn6k0ri6bgrr0nhis9498fnwj7b32s2ysym8zcg0355";
       })
  +  ];
  +
  +  nativeBuildInputs = [
  +    cmake
  +    doxygen
  +    ninja
  +    qttools
  +  ];
  +
  +  buildInputs = [
  +    clipper
  +    cups
  +    gdal
  +    proj
  +    qtimageformats
  +    qtlocation
  +    qtsensors
  +    zlib
     ];
   
     cmakeFlags = [
  
positive.code: { lib, stdenv
  , mkDerivation
  , fetchFromGitHub
  , fetchpatch
  , substituteAll
  , gdal
  , cmake
  , ninja
  , proj
  , clipper
  , zlib
  , qttools
  , qtlocation
  , qtsensors
  , qttranslations
  , doxygen
  , cups
  , qtimageformats
  }:
  
  mkDerivation rec {
    pname = "OpenOrienteering-Mapper";
    version = "0.9.5";
  
    buildInputs = [
      gdal
      qtlocation
      qtimageformats
      qtsensors
      clipper
      zlib
      proj
      cups
    ];
  
    nativeBuildInputs = [ cmake doxygen ninja qttools ];
  
    src = fetchFromGitHub {
      owner = "OpenOrienteering";
      repo = "mapper";
      rev = "v${version}";
      sha256 = "1w8ikqpgi0ksrzjal5ihfaik4grc5v3gdnnv79j20xkr2p4yn1h5";
    };
  
    patches = [
  
negative.code:   '';
  
    meta = with lib; {
      homepage = "https://www.openorienteering.org/apps/mapper/";
      description = "An orienteering mapmaking program";
      changelog = "https://github.com/OpenOrienteering/mapper/releases/tag/v${version}";
      license = licenses.gpl3Plus;
      maintainers = with maintainers; [ mpickering sikmir ];
      platforms = with platforms; unix;
      broken = stdenv.isDarwin;
    };
  }
  