anchor.diff:  { lib, stdenv, fetchurl, fetchFromGitLab, jdk17_headless, coreutils, gradle_6, git, perl
  -, makeWrapper }:
  +, makeWrapper, fetchpatch
  +}:
   
   let
     pname = "signald";
  
positive.code:     sha256 = "ftK+oeqzJ+TxrlvqivFkAi5RCcyJ5Y0oQAJuo0YheBg=";
    };
  
    buildConfigJar = fetchurl {
      url = "https://dl.bintray.com/mfuerstenau/maven/gradle/plugin/de/fuerstenau/BuildConfigPlugin/1.1.8/BuildConfigPlugin-1.1.8.jar";
      sha256 = "0y1f42y7ilm3ykgnm6s3ks54d71n8lsy5649xgd9ahv28lj05x9f";
  
negative.code:     outputHashMode = "recursive";
      # Downloaded jars differ by platform
      outputHash = {
        x86_64-linux = "sha256-e2Tehtznc+VsvQzD3lQ50Lg7ipQc7P3ekOnb8XLORO8=";
        aarch64-linux = "sha256-P48s3vG5vUNxCCga5FhzpODhlvvc+F2ZZGX/G0FVGWc=";
      }.${stdenv.system} or (throw "Unsupported platform");
    };
  
  in stdenv.mkDerivation rec {
    inherit pname src version;
  
    patches = [
      ./gradle-plugin.patch
      log4j-update-cve-2021-44228
    ];
  
    postPatch = ''
      sed -i 's|BuildConfig.jar|${buildConfigJar}|' build.gradle
  