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
ber_metaocaml: (re)init at 104 #32494
Conversation
url = "http://okmij.org/ftp/ML/ber-metaocaml.tar.gz"; | ||
sha256 = "1kq1if25c1wvcdiy4g46xk05dkc1am2gc4qvmg4x19wvvaz09gzf"; | ||
url = "http://okmij.org/ftp/ML/ber-metaocaml-104.tar.gz"; | ||
sha256 = "1gmwlxairxqcmqa2r6kbf8b4dxc7pfhfbh48g1s14d3z20rj8nib"; | ||
}; | ||
|
||
# Needed to avoid a SIGBUS on the final executable on mips | ||
NIX_CFLAGS_COMPILE = if stdenv.isMips then "-fPIC" else ""; | ||
|
||
patches = optionals stdenv.isDarwin [ ./gnused-on-osx-fix.patch ]; |
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.
This patch does not apply. Is it needed?
"-x11include" x11inc ]; | ||
|
||
dontStrip = true; | ||
buildInputs = [ncurses] ++ optionals useX11 [ libX11 xproto ]; | ||
installFlags = "-i"; | ||
installTargets = "install"; # + optionalString useNativeCompilers " installopt"; | ||
prePatch = '' | ||
CAT=$(type -tp cat) |
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.
Is this CAT
variable used anywhere? If not, you may drop the full prePatch
attribute.
@vbgl as a general point if I have some more time in the future would it be better to modify |
f8ca8db
to
9a072a4
Compare
Thanks for the sharp eye @vbgl , I removed the two redundant parts of the expression. |
Thanks. Your suggestion to refactor |
Motivation for this change
The old derivation was broken as the
src
pointed to a mutable url. It was also necessary to make some more packaging changes to get it to compile to follow with changes to the normal ocaml build process.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)