Skip to content
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

Update Solidity compiler to latest version #19697

Merged
merged 2 commits into from Oct 24, 2016
Merged

Conversation

dbrock
Copy link
Contributor

@dbrock dbrock commented Oct 19, 2016

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

};

patchPhase = ''
echo >commit_hash.txt af6afb0415761b53721f89c7f65064807f41cbd3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a) Is this file really needed?
b) Can you use pkgs.writeTextFile instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a) Without it, I get this error:

CMake Error at cmake/scripts/buildinfo.cmake:52 (message):
  Unable to determine commit hash.  Either compile from within git repository
  or supply a file called commit_hash.txt

b) How would I do that? It needs to be in the source directory while building. I don't know enough about Nix to figure out how to do that. I tried this and it didn't work:

  commitHashFile = pkgs.writeText "commit_hash.txt"
    "af6afb0415761b53721f89c7f65064807f41cbd3";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cp ${commitHashFile} commit_hash.txt

would be a solution here. But I don't see the advantage over echo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, thanks. Still want to use writeText @NeQuissimus?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries

@NeQuissimus
Copy link
Member

Other than the above, the build LGTM

@NeQuissimus NeQuissimus merged commit ec6ed58 into NixOS:master Oct 24, 2016
@dbrock dbrock deleted the solc branch November 2, 2016 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants