anchor.diff:      tar xvf ./build/distributions/signald.tar --strip-components=1 --directory $out/
       wrapProgram $out/bin/signald \
         --prefix PATH : ${lib.makeBinPath [ coreutils ]} \
  -      --set JAVA_HOME "${jre_headless}"
  +      --set JAVA_HOME "${jdk17_headless}"
   
       runHook postInstall
     '';
  
positive.code:     outputHashMode = "recursive";
      # Downloaded jars differ by platform
      outputHash = {
        x86_64-linux = "/gJFoT+vvdSWr33oI44XiZXlFfyUjtRVB1M6CMzSztM=";
        aarch64-linux = "v71stMWBbNALasfGAHvsVTBaDOZfpKK3sQrjNJ6FG1A=";
      }.${stdenv.system} or (throw "Unsupported platform");
    };
  
  in stdenv.mkDerivation rec {
    inherit pname src version postPatch;
  
    patches = [ ./gradle-plugin.patch ];
  
    buildPhase = ''
      runHook preBuild
  
negative.code: { lib, stdenv, fetchurl, fetchFromGitLab, jdk17_headless, coreutils, gradle_6, git, perl
  , makeWrapper }:
  
  let
    pname = "signald";
    version = "0.15.0";
  
    src = fetchFromGitLab {
      owner = pname;
      repo = pname;
      rev = version;
      sha256 = "ftK+oeqzJ+TxrlvqivFkAi5RCcyJ5Y0oQAJuo0YheBg=";
    };
  
    buildConfigJar = fetchurl {
  