11 camlpdf = ocamlPackages.camlpdf.overrideAttrs {
12 src = fetchFromGitHub {
15 rev = "v2.3.1+satysfi";
16 sha256 = "1s8wcqdkl1alvfcj67lhn3qdz8ikvd1v64f4q6bi4c0qj9lmp30k";
19 yojson-with-position = ocamlPackages.buildDunePackage {
20 pname = "yojson-with-position";
22 src = fetchFromGitHub {
24 repo = "yojson-with-position";
25 rev = "v1.4.2+satysfi";
26 sha256 = "17s5xrnpim54d1apy972b5l08bph4c0m5kzbndk600fl0vnlirnl";
28 nativeBuildInputs = [ ocamlPackages.cppo ];
29 propagatedBuildInputs = [ ocamlPackages.biniou ];
30 inherit (ocamlPackages.yojson) meta;
33 ocamlPackages.buildDunePackage rec {
36 src = fetchFromGitHub {
40 hash = "sha256-qgVM7ExsKtzNQkZO+I+rcWLj4LSvKL5uyitH7Jg+ns0=";
41 fetchSubmodules = true;
45 substituteInPlace src/frontend/main.ml --replace \
46 '/usr/local/share/satysfi"; "/usr/share/satysfi' \
50 nativeBuildInputs = with ocamlPackages; [
60 ++ (with ocamlPackages; [
73 mkdir -p $out/share/satysfi/dist/fonts
74 cp -r lib-satysfi/dist/ $out/share/satysfi/
76 ${ipaexfont}/share/fonts/opentype/* \
77 ${lmodern}/share/fonts/opentype/public/lm/* \
78 ${lmmath}/share/fonts/opentype/latinmodern-math.otf \
79 ${junicode}/share/fonts/truetype/Junicode-{Bold,BoldItalic,Italic}.ttf \
80 $out/share/satysfi/dist/fonts/
81 cp ${junicode}/share/fonts/truetype/Junicode-Regular.ttf \
82 $out/share/satysfi/dist/fonts/Junicode.ttf
86 homepage = "https://github.com/gfngfn/SATySFi";
87 description = "Statically-typed, functional typesetting system";
88 changelog = "https://github.com/gfngfn/SATySFi/blob/v${version}/CHANGELOG.md";
89 license = licenses.lgpl3Only;
90 maintainers = [ maintainers.mt-caret ];
91 platforms = platforms.all;
92 mainProgram = "satysfi";