anchor.diff:      pname = "${pname}-deps";
       inherit version src;
   
  -    nativeBuildInputs = [ gradle perl ];
  +    nativeBuildInputs = [ gradle perl ] ++ lib.optional stdenv.isDarwin xcbuild;
       buildPhase = ''
       cat >>build.gradle <<HERE
   task resolveDependencies {
  
positive.code: , makeDesktopItem
  , autoPatchelfHook
  , icoutils
  }:
  
  let
  
negative.code: 
    nativeBuildInputs = [
      gradle unzip makeWrapper icoutils
    ] ++ lib.optional stdenv.isDarwin xcbuild;
  
    dontStrip = true;
  
    buildPhase = (lib.optionalString stdenv.isDarwin ''
      export HOME=$(mktemp -d)
  
      # construct a dummy /etc/passwd file - something attempts to determine
      # the user's "real" home using this
      DUMMY_PASSWD=$(realpath ../dummy-passwd)
      cat > $DUMMY_PASSWD <<EOF
      $(whoami)::$(id -u):$(id -g)::$HOME:$SHELL
      EOF
  
      export NIX_REDIRECTS=/etc/passwd=$DUMMY_PASSWD
      export DYLD_INSERT_LIBRARIES=${libredirect}/lib/libredirect.dylib
    '') + ''
  
      export GRADLE_USER_HOME=$(mktemp -d)
  
      ln -s ${fixedDeps}/dependencies dependencies
  
      sed -ie "s#mavenLocal()#mavenLocal(); maven { url '${fixedDeps}/maven' }#g" build.gradle
  