Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

state of nix in ubuntu #635

Open
thedavidmeister opened this issue Nov 17, 2018 · 4 comments
Open

state of nix in ubuntu #635

thedavidmeister opened this issue Nov 17, 2018 · 4 comments
Assignees

Comments

@thedavidmeister
Copy link
Contributor

thedavidmeister commented Nov 17, 2018

overview

sister of state of nix-shell on mac os X #632
sister of state of nix in travis #633
sister of state of nix in windows #634
child of shell.nix instead of makefile for nixos #627

R&D

@zippy to test and report back on the following, whenever he feels up to it:

  1. install nix: curl https://nixos.org/nix/install | sh
  2. follow any instructions spat out by the script
  3. checkout the ubuntu testing branch https://github.com/holochain/holochain-rust/pull/636/files
  4. test and report back on:
  • nix-shell shell.core.nix --run hc-wasm-build
  • nix-shell shell.core.nix --run hc-test
  • nix-shell shell.tools.nix --run hc-fmt
@thedavidmeister
Copy link
Contributor Author

from @zippy in parent:

I was a bit confused by the term "replace" because this simply adds an alternative and doesn't remove the Makefile. So, this should be an easy approve for me because all it's supposed to do is make nix building available, and not break anything else.

However, though the legacy build path (make test_non_c) works just fine, when I run nix-shell shell.core.nix --run "hc-wasm-build && hc-test" on my ubuntu box I get this error:

error: failed to run custom build command for `zmq v0.9.0 (https://github.com/erickt/rust-zmq.git?rev=958848728954c979cc5e1675459e308c3685d1a1#95884872)`                                                   
process didn't exit successfully: `/home/eric/code/metacurrency/holochain/holochain-rust/target/debug/build/zmq-14c7906c65209908/build-script-build` (exit code: 127)
--- stderr
/home/eric/code/metacurrency/holochain/holochain-rust/target/debug/build/zmq-14c7906c65209908/build-script-build: error while loading shared libraries: libzmq.so.5: cannot open shared object file: No such file or directory

I would be willing to approve this just to move things forward for @thedavidmeister, and add this issue as a followup, or we could treat this as a change request, your call.

@zippy
Copy link
Member

zippy commented Nov 17, 2018

nix-shell shell.core.nix --run hc-wasm-build
nix-shell shell.core.nix --run hc-test

both run fine on my ubuntu.

@zippy
Copy link
Member

zippy commented Nov 17, 2018

nix-shell shell.tools.nix --run hc-fmt runs, but produces a complete different state than . docker/run-fmt which I think is not acceptable because we will have fmt wars. I don't know which one is "wrong".

note also that make fmt_check produces the same state as. docker/run-fmt

@thedavidmeister
Copy link
Contributor Author

@zippy yeah that's no good :/

i'll have to come back to this when i'm more familiar with nixos vs. "nix in ubuntu"

the good news is that nixos does use the right version and produces the right output :D

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants