anchor.diff: -{ stdenv, fetchzip, fetchFromGitHub, ocamlPackages }:
  +{ stdenv, fetchzip, fetchFromGitHub, ruby, dune, ocamlPackages
  +, ipaexfont, junicode
  +}:
   let
     lm = fetchzip {
       url = "http://www.gust.org.pl/projects/e-foundry/latin-modern/download/lm2.004otf.zip";
  
positive.code:     url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip";
      sha256 = "15l3lxjciyjmbh0q6jjvzz16ibk4ij79in9fs47qhrfr2wrddpvs";
    };
  in
    stdenv.mkDerivation rec {
      name = "satysfi-${version}";
      version = "2018-03-07";
      src = fetchFromGitHub {
        owner = "gfngfn";
        repo = "SATySFi";
        rev = "a050ec0906d083682c630b0dea68887415b5f53d";
        sha256 = "12bhl7s2kc02amr8rm71pihj203f2j15y5j0kz3swgsw0gqh81gv";
        fetchSubmodules = true;
      };
  
  
negative.code:       $out/share/satysfi
      '';
  
      nativeBuildInputs = [ ruby dune ];
  
      buildInputs = [ camlpdf otfm ] ++ (with ocamlPackages; [
        ocaml findlib menhir
        batteries camlimages core_kernel ppx_deriving uutf yojson
      ]);
  
      installPhase = ''
        cp -r ${ipaexfont}/share/fonts/opentype/* lib-satysfi/dist/fonts/
        cp -r ${junicode}/share/fonts/junicode-ttf/* lib-satysfi/dist/fonts/
        cp -r ${lm}/* lib-satysfi/dist/fonts/
        cp -r ${lm-math}/otf/latinmodern-math.otf lib-satysfi/dist/fonts/
        make install PREFIX=$out LIBDIR=$out/share/satysfi
  