anchor.diff:      runHook postInstall
     '';
   
  -  buildInputs = [
  -    boost
  -    muparser
  -    libGLU
  -    qtbase
  -    qtscript
  -    qtsvg
  -    qtxmlpatterns
  -  ];
  -
  -  nativeBuildInputs = [
  -    pkg-config
  -    qmake
  -    qttools
  -    installShellFiles
  -  ];
  -
     meta = with lib; {
       description = "2D CAD package based on Qt";
       homepage = "https://qcad.org";
  
positive.code:     fi
    '';
  
    qmakeFlags = [
      "MUPARSER_DIR=${muparser}"
      "INSTALLROOT=$(out)"
      "BOOST_DIR=${boost.dev}"
    ];
  
    installPhase = ''
      runHook preInstall
  
      install -Dm555 -t $out/bin release/qcad-bin
      install -Dm555 -t $out/lib release/libspatialindexnavel.so
      install -Dm555 -t $out/lib release/libqcadcore.so
      install -Dm555 -t $out/lib release/libqcadentity.so
      install -Dm555 -t $out/lib release/libqcadgrid.so
      install -Dm555 -t $out/lib release/libqcadsnap.so
      install -Dm555 -t $out/lib release/libqcadoperations.so
      install -Dm555 -t $out/lib release/libqcadstemmer.so
      install -Dm555 -t $out/lib release/libqcadspatialindex.so
      install -Dm555 -t $out/lib release/libqcadgui.so
      install -Dm555 -t $out/lib release/libqcadecmaapi.so
  
      install -Dm444 -t $out/share/applications qcad.desktop
      install -Dm644 -t $out/share/pixmaps      scripts/qcad_icon.png
  
negative.code: { lib
  , stdenv
  , mkDerivation
  , fetchFromGitHub
  , installShellFiles
  , pkg-config
  , qmake
  , qttools
  , boost
  , libGLU
  , muparser
  , qtbase
  , qtscript
  , qtsvg
  , qtxmlpatterns
  , qtmacextras
  }:
  
  mkDerivation rec {
    pname = "qcad";
    version = "3.27.1.0";
  
    src = fetchFromGitHub {
      owner = "qcad";
      repo = "qcad";
      rev = "v${version}";
      sha256 = "sha256-tydgSfS1MF322sgWULMEZ8P6YIaN1QoeJiia0wbsgjo=";
    };
  
    patches = [
  