New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
satysfi: init at 2018-03-07 #36428
satysfi: init at 2018-03-07 #36428
Conversation
ping @vbgl |
@GrahamcOfBorg build ocaml-ng.ocamlPackages_4_06.satysfi |
Since this is not an OCaml library, it does not belong to |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Fixed. |
@@ -0,0 +1,40 @@ | |||
{ stdenv, fetchzip, fetchFromGitHub, ocaml, ocamlbuild, findlib, menhir, | |||
ppx_deriving, uutf, result, core_kernel, bitv, batteries, yojson, camlimages }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you take ocamlPackages
as one argument all libraries separately?
homepage = https://github.com/gfngfn/SATySFi; | ||
description = "A statically-typed, functional typesetting system"; | ||
license = licenses.lgpl3; | ||
maintainers = [ maintainers.mt-caret ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a platforms
attribute.
}; | ||
buildInputs = [ findlib menhir ppx_deriving uutf result core_kernel bitv | ||
batteries yojson camlimages ]; | ||
nativeBuildInputs = [ ocaml ocamlbuild ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this split between buildInputs
and nativeBuildInputs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guessed ocaml and ocamlbuild were only needed at build time. So this should all be in buildInputs?
lm-math = fetchzip { | ||
url = "http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip"; | ||
sha256 = "15l3lxjciyjmbh0q6jjvzz16ibk4ij79in9fs47qhrfr2wrddpvs"; | ||
stripRoot = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What’s the purpose of this stripRoot
here?
Does it work correctly? I tried the tests from https://github.com/gfngfn/SATySFi/tree/master/tests and got:
|
Yeah, that's a known issue (gfngfn/SATySFi#17) (and probably one of the reasons why there's no official version out yet). Copying everything from ./dist to ~/.satysfi will fix it, but AFAIK that can't be done at build-time in Nix; I believe SATySFi currently looks for various files in hardcoded paths but that will change in the future. |
It’s easy to fix these hardcoded paths at configure-time. With this change, I could compile the |
Motivation for this change
A typesetting system.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)