anchor.diff: -{ lib, stdenv, fetchurl, makeWrapper, patchelf, openssl, libunwind, zlib, krb5, icu, nixosTests }:
  +{ lib, stdenv, fetchurl, makeWrapper, autoPatchelfHook, fixDarwinDylibNames, zlib, krb5, openssl, icu, nixosTests }:
   
   let
     os = if stdenv.isDarwin then "osx" else "linux";
  
positive.code:     sha256 = hash;
    };
  
    buildInputs = [ makeWrapper patchelf ];
  
    installPhase = ''
      mkdir -p $out/{bin,share/${pname}-${version}}
      cp -r * $out/share/${pname}-${version}
  
      makeWrapper $out/share/${pname}-${version}/Ombi $out/bin/Ombi \
        --run "cd $out/share/${pname}-${version}"
    '';
  
    dontPatchELF = true;
    postFixup = ''
      patchelf --set-interpreter "${dynamicLinker}" \
        --set-rpath "$ORIGIN:${rpath}" $out/share/${pname}-${version}/Ombi
  
      find $out -type f -name "*.so" -exec \
        patchelf --set-rpath '$ORIGIN:${rpath}' {} ';'
    '';
  
    passthru = {
  
negative.code:     "Unsupported system: ${stdenv.hostPlatform.system}");
  
    hash = {
      x64-linux_hash = "sha256-9m5vWobkibqOHsuIJmvEHuwsuJogvQQe8h0dvFj62tw=";
      arm64-linux_hash = "sha256-OBm4j5Ez04XLjp4DHyOrwSOSGanuuI8g2y2wZaotH8M=";
      x64-osx_hash = "sha256-UPf6Yl0nbhmiWq9oGyi7sRhlahB6zHL7nTj7GRlKoII=";
    }."${arch}-${os}_hash";
  
  in stdenv.mkDerivation rec {
    pname = "ombi";
    version = "4.0.1345";
  
    sourceRoot = ".";
  
  