anchor.diff:      sha256 = hash;
     };
   
  -  buildInputs = [ makeWrapper ] ++ lib.optional stdenv.isDarwin unzip;
  +  buildInputs = lib.optionals stdenv.isLinux [
  +    alsaLib # libasound.so wanted by lib/libjsound.so
  +    fontconfig
  +    freetype
  +    stdenv.cc.cc # libstdc++.so.6
  +    xorg.libX11
  +    xorg.libXext
  +    xorg.libXi
  +    xorg.libXrender
  +    xorg.libXtst
  +  ];
  +
  +  nativeBuildInputs = [
  +    autoPatchelfHook makeWrapper
  +  ] ++ lib.optionals stdenv.isDarwin [
  +    unzip
  +  ];
   
     installPhase = ''
       mkdir -p $out
       cp -r ./* "$out/"
  -
  -    jrePath="$out/jre"
  -
  -    rpath=$rpath''${rpath:+:}$jrePath/lib/amd64/jli
  -    rpath=$rpath''${rpath:+:}$jrePath/lib/amd64/server
  -    rpath=$rpath''${rpath:+:}$jrePath/lib/amd64/xawt
  -    rpath=$rpath''${rpath:+:}$jrePath/lib/amd64
  -
  -    # set all the dynamic linkers
  -    find $out -type f -perm -0100 \
  -        -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
  -        --set-rpath "$rpath" {} \;
  -
  -    find $out -name "*.so" -exec patchelf --set-rpath "$rpath" {} \;
   
       mkdir -p $out/nix-support
       printWords ${setJavaClassPath} > $out/nix-support/propagated-build-inputs
  
positive.code: { stdenv, lib, fetchurl, unzip, makeWrapper, setJavaClassPath
  , zulu, glib, libxml2, ffmpeg_3, libxslt, libGL, alsaLib
  , fontconfig, freetype, pango, gtk2, cairo, gdk-pixbuf, atk, xorg
  , swingSupport ? true }:
  
  let
    version = "8.48.0.53";
  
negative.code:   hash = if stdenv.isDarwin then sha256_darwin else sha256_linux;
    extension = if stdenv.isDarwin then "zip" else "tar.gz";
  
    runtimeDependencies = [
      cups
    ] ++ lib.optionals gtkSupport [
      cairo glib gtk3
    ];
    runtimeLibraryPath = lib.makeLibraryPath runtimeDependencies;
  
  in stdenv.mkDerivation {
    inherit version openjdk platform hash extension;
  