anchor.diff:      libGLU
       mesa
       proj
  +    wxGTK32
     ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
       Carbon
       Cocoa
  -    wxmac
     ] ++ lib.optionals stdenv.hostPlatform.isLinux [
  -    wxGTK30-gtk3
       xlibsWrapper
     ];
  -
  -  src = fetchurl {
  -    url = "https://survex.com/software/${version}/${pname}-${version}.tar.gz";
  -    hash = "sha256-69X1jGjBTQIQzkD1mTZTzE8L/GXnnf5SI52l7eIiLz4=";
  -  };
   
     postPatch = ''
       patchShebangs .
  
positive.code: , proj
  , python3
  , wrapGAppsHook
  , wxGTK30-gtk3
  , wxmac
  , xlibsWrapper
  }:
  
  stdenv.mkDerivation rec {
    pname = "survex";
    version = "1.4.1";
  
    nativeBuildInputs = [
      perl
  
negative.code: { lib
  , stdenv
  , fetchurl
  , fetchpatch
  , Carbon
  , Cocoa
  , ffmpeg
  