anchor.diff:    postPatch = ''
       # Fix search path for BDJ jarfile
       # See triton-patches "libbluray/BDJ-JARFILE-path.patch"
  +    grep -q '[JDK_HOME],' configure.ac
       sed -i configure.ac \
         -e "/\[JDK_HOME\], \[\"\$JDK_HOME\"\]/a CPPFLAGS=\"''${CPPFLAGS} -DJARDIR='\\\\\"\\\$(datadir)/java\\\\\"'\""
  +    grep -q '"/usr/share/java/" BDJ_JARFILE' src/libbluray/bdj/bdj.c
  +    grep -q '"/usr/share/libbluray/lib/"' src/libbluray/bdj/bdj.c
       sed -i src/libbluray/bdj/bdj.c \
         -e 's|"/usr/share/java/" BDJ_JARFILE|JARDIR "/" BDJ_JARFILE|' \
         -e '/"\/usr\/share\/libbluray\/lib\/"/d'
       # Remove impure paths
  +    grep -q '/usr' src/libbluray/bdj/bdj.c
       sed -i src/libbluray/bdj/bdj.c \
         -e 's,/usr,/non-existent-path,' \
         -e 's,/etc,/non-existent-path,'
  
positive.code:     "--${boolEn (jdk != null)}-bdjava"
      "--enable-udf"
      "--${boolEn (jdk != null)}-bdjava-jar"
      "--disable-doxygen-doc"
      "--disable-doxygen-dot"
      "--disable-doxygen-man"
      "--disable-doxygen-rtf"
      "--disable-doxygen-xml"
      "--disable-doxygen-chm"
      "--disable-doxygen-chi"
      "--disable-doxygen-html"
      "--disable-doxygen-ps"
      "--disable-doxygen-pdf"
      "--with-libxml2"
      "--with-freetype"
      "--with-fontconfig"
  
negative.code:     boolEn
      boolWt;
  
    version  = "1.1.1";
  in
  stdenv.mkDerivation rec {
    name = "libbluray-${version}";
  