anchor.diff:  , qttools
   , qtserialport
   , boost
  +, libngspice
   , libgit2
   , quazip
   }:
  
positive.code: let
    # SHA256 of the fritzing-parts HEAD on the master branch,
    # which contains the latest stable parts definitions
    partsSha = "640fa25650211afccd369f960375ade8ec3e8653";
  
    parts = fetchFromGitHub {
      owner = "fritzing";
      repo = "fritzing-parts";
      rev = partsSha;
      sha256 = "sha256-4S65eX4LCnXCFQAOxmdvr8d0nAgTWcJooE2SpLYpcXI=";
    };
  in
  
  mkDerivation rec {
    pname = "fritzing";
    version = "unstable-2021-09-22";
  
    src = fetchFromGitHub {
      owner = pname;
      repo = "fritzing-app";
      rev = "f0af53a9077f7cdecef31d231b85d8307de415d4";
      sha256 = "sha256-fF38DrBoeZ0aKwVMNyYMPWa5rFPbIVXRARZT+eRat5Q=";
    };
  
    buildInputs = [ qtbase qtsvg qtserialport boost libgit2 quazip ];
    nativeBuildInputs = [ qmake pkg-config qttools ];
  
    patches = [
      # Add support for QuaZip 1.x
      (fetchpatch {
        url = "https://github.com/fritzing/fritzing-app/commit/ef83ebd9113266bb31b3604e3e9d0332bb48c999.patch";
        sha256 = "sha256-J43E6iBRIVbsuuo82gPk3Q7tyLhNkuuyYwtH8hUfcPU=";
      })
    ];
  
  
negative.code: { stdenv
  , lib
  , fetchFromGitHub
  , fetchpatch
  , wrapQtAppsHook
  , qmake
  , pkg-config
  , qtbase
  