anchor.diff:      maintainers = [ maintainers.steveej ];
       platforms = platforms.linux;
     };
  -
   }
  
positive.code: { stdenv, lib, fetchzip, cups
  
    # Can either be "EU" or "Global"; it's unclear what the difference is
    , region ? "Global"
  }:
  
  let
  
negative.code:     if stdenv.system == "x86_64-linux" then "64bit"
      else if stdenv.system == "i686-linux" then "32bit"
           else throw "Unsupported system: ${stdenv.system}";
    debPlatform =
      if platform == "64bit" then "amd64"
      else "i386";
    debRegion = if region == "EU" then "EU." else "";
  in
  stdenv.mkDerivation rec {
    name = "cups-kyodialog3-${version}";
    version = "8.1601";
  
    dontStrip = true;
  
    src = fetchzip {
      url = "https://usa.kyoceradocumentsolutions.com/content/dam/kdc/kdag/downloads/technical/executables/drivers/kyoceradocumentsolutions/us/en/Kyocera_Linux_PPD_Ver_${version}.tar.gz";
      sha256 = "11znnlkfssakml7w80gxlz1k59f3nvhph91fkzzadnm9i7a8yjal";
    };
  
    nativeBuildInputs = [ autoPatchelfHook ];
  
    buildInputs = [ cups qt4 ];
  
    installPhase = ''
      mkdir -p $out
  