jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.66k stars 105 forks source link

Can't comile amp on NixOS #28

Closed flosse closed 6 years ago

flosse commented 6 years ago
[nix-shell:~/dev/amp]$ cargo build --release
   Compiling miniz-sys v0.1.10
   Compiling backtrace-sys v0.1.15
   Compiling cmake v0.1.26
   Compiling termbox-sys v0.2.10
   Compiling base64 v0.6.0
   Compiling xcb v0.7.7
   Compiling termion v1.1.1 (https://github.com/jmacdonald/termion?branch=esc#09f4c021)
   Compiling time v0.1.38
error: failed to run custom build command for `termbox-sys v0.2.10`
process didn't exit successfully: `/home/mk/dev/amp/target/release/build/termbox-sys-93246560dcc0a181/build-script-build` (exit code: 101)
--- stdout
running: "git" "clone" "https://github.com/nsf/termbox" ".termbox"

--- stderr
fatal: Zielpfad '.termbox' existiert bereits und ist kein leeres Verzeichnis.
thread 'main' panicked at 'assertion failed: cmd.stdout(Stdio::inherit()).stderr(Stdio::inherit()).status().unwrap().success()', /home/mk/.cargo/registry/src/github.com-1ecc6299db9ec823/termbox-sys-0.2.10/build.rs:87:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
jmacdonald commented 6 years ago

Have you installed both the build and general dependencies before building?

flosse commented 6 years ago

Have you installed both the build and general dependencies before building?

sure:

nix-shell -p python3 -p cmake -p git -p xorg.libxcb -p pkgconfig 
flosse commented 6 years ago

It seems to be related to https://github.com/gchp/termbox-sys/issues/11 but there is no solution :(

flosse commented 6 years ago

workaround:

rm -rf ~/.cargo/registry/src/github.com-1ecc6299db9ec823/
flosse commented 6 years ago

With openssl and zlib it works => #30