anchor.diff:      prefix=$jre stripDirs "$stripDebugList" "''${stripDebugFlags:--S}"
       patchELF $jre
       propagatedNativeBuildInputs+=" $jre"
  +
  +    # Propagate the setJavaClassPath setup hook from the JRE so that
  +    # any package that depends on the JRE has $CLASSPATH set up
  +    # properly.
  +    mkdir -p $jre/nix-support
  +    echo -n "${setJavaClassPath}" > $jre/nix-support/propagated-native-build-inputs
     '';
   
     meta = {
  
positive.code: 
    outputs = [ "out" "jre" ];
  
    buildInputs = [
      unzip
      procps
      ant
      which
      zip
      cpio
      nettools
      alsaLib
      libX11
      libXt
      libXext
      libXrender
      libXtst
      libXi
      libXinerama
      libXcursor
      fontconfig
      perl
    ];
  
    NIX_LDFLAGS = "-lfontconfig -lXcursor -lXinerama";
  
  
negative.code: { stdenv, fetchurl, unzip, zip, procps, coreutils, alsaLib, ant, freetype, cups
  , which, jdk, nettools, libX11, libXt, libXext, libXrender, libXtst, libXi, libXinerama
  , libXcursor, fontconfig, cpio, cacert, perl, setJavaClassPath }:
  
  let
  
  