anchor.diff:    '';
   
     postPatch = ''
  -    substituteInPlace Makefile                  --replace /bin/bash "$(command -v bash)"
  -    substituteInPlace jiten/res/jmdict/Makefile --replace /bin/bash "$(command -v bash)"
  +    rmdir nonfree-data
  +    ln -s ${nonFreeData} nonfree-data
  +    substituteInPlace Makefile --replace /bin/bash ${bash}/bin/bash
  +    substituteInPlace jiten/res/jmdict/Makefile \
  +      --replace /bin/bash ${bash}/bin/bash
     '';
   
  -  checkPhase = "make test";
  +  checkPhase = ''
  +    make test
  +  '';
   
     postInstall = ''
       # requires pywebview
  
positive.code:       • readings (romaji optional), meanings (english), jmdict entries, radicals & more
        • search using SKIP codes
        • search by radical
        • browse by frequency/level/jlpt
  
        Example sentences (from Tatoeba)
        • with english, dutch, german, french and/or spanish translation
  
negative.code: { lib
  , fetchFromGitHub
  , python3
  , bash
  , makeWrapper
  , kanjidraw
  , pcre
  , sqlite
  , nodejs
  }:
  
  python3.pkgs.buildPythonApplication rec {
    pname = "jiten";
    version = "1.1.0";
  
    src = fetchFromGitHub {
      owner = "obfusk";
      repo = "jiten";
      rev = "v${version}";
      sha256 = "13bdx136sirbhxdhvpq5kf0r6q1xvm5zyzp454z51gy0v6rn0qrp";
    };
  
    nonFreeData = fetchFromGitHub {
      owner = "obfusk";
      repo = "jiten-nonfree-data";
      rev = "v${version}";
      sha256 = "16sz8i0sw7ggy6kijcx4qyl2zr6xj789x4iav0yyllx12dfgp5b1";
    };
  
    nativeBuildInputs = [ makeWrapper ];
    buildInputs = [ pcre sqlite ];
    propagatedBuildInputs = with python3.pkgs; [ click flask kanjidraw ];
    checkInputs = [ nodejs ];
  
    preBuild = ''
  