focus
focus copied to clipboard
Build instructions don't work
focus master $ nix-shell
[nix-shell:~/editors/focus]$ zig build run -Drelease-safe=true
/home/omer/editors/focus/lib/focus/imp_repl.zig:11:21: error: unable to load '/home/omer/editors/focus/imp/lib/imp.zig': FileNotFound
const imp = @import("../../imp/lib/imp.zig");
^
focus-local...The following command exited with error code 1:
/nix/store/k8a77g27gbaslzzy1dyg876kjp5a4320-zig/bin/zig build-exe /home/omer/editors/focus/bin/focus.zig -lc -lGL -lSDL2 -lSDL2_ttf -lSDL2 -lpcre2-8 -OReleaseSafe --cache-dir /home/omer/editors/focus/zig-cache --global-cache-dir /home/omer/.cache/zig --name focus-local -I /nix/store/s8644w8zd853agllpykf824wqhgd7gmy-libglvnd-1.3.2-dev/include -I /nix/store/sk8sxkdy4yjanq04wgc97a5ydn6czrrv-SDL2-2.0.14-dev/include/SDL2 -I /nix/store/sk8sxkdy4yjanq04wgc97a5ydn6czrrv-SDL2-2.0.14-dev/include/SDL2 -I /nix/store/s1dh28fpvxw2wf8zc4h93lmskcw7l70w-SDL2_ttf-2.0.15/include/SDL2 -I /nix/store/1i5n540vmik93mm9ak56p06d6v9qh00i-libGL-1.3.2-dev/include -I /nix/store/9f78zqb1nmarxq19smnn8bz6z54jn8rr-xorgproto-2021.3/include -I /nix/store/qplprjvdgh5dl2k6z7fv714yql3layhj-libX11-1.7.0-dev/include -I /nix/store/sk8sxkdy4yjanq04wgc97a5ydn6czrrv-SDL2-2.0.14-dev/include -I /nix/store/s1dh28fpvxw2wf8zc4h93lmskcw7l70w-SDL2_ttf-2.0.15/include -I /nix/store/fybws5k08alqwynxqhld99dldis5ln78-pcre2-10.36-dev/include -L /nix/store/pby9yzkvp4sdxnn182nj3cww2gshnmp1-libglvnd-1.3.2/lib -L /nix/store/bp5rqzywc936gyfdq9vqwrr77ag2nsy2-SDL2-2.0.14/lib -L /nix/store/bp5rqzywc936gyfdq9vqwrr77ag2nsy2-SDL2-2.0.14/lib -L /nix/store/s1dh28fpvxw2wf8zc4h93lmskcw7l70w-SDL2_ttf-2.0.15/lib -D _REENTRANT -D _REENTRANT --main-pkg-path /home/omer/editors/focus --enable-cache
error: the following build command failed with exit code 1:
/home/omer/editors/focus/zig-cache/o/ba8a08373158cac6b54e3069dcbe1e24/build /nix/store/k8a77g27gbaslzzy1dyg876kjp5a4320-zig/bin/zig /home/omer/editors/focus /home/omer/editors/focus/zig-cache /home/omer/.cache/zig run -Drelease-safe=true
Oops. Do git clone https://github.com/jamii/imp ../imp
. I added a note to the readme.
I'm now getting this error:
$ ./zig-cache/focus-local
./zig-cache/focus-local: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /nix/store/bp5rqzywc936gyfdq9vqwrr77ag2nsy2-SDL2-2.0.14/lib/libSDL2-2.0.so.0)
./zig-cache/focus-local: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /nix/store/bp5rqzywc936gyfdq9vqwrr77ag2nsy2-SDL2-2.0.14/lib/libSDL2-2.0.so.0)
./zig-cache/focus-local: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /nix/store/v8q6nxyppy1myi3rxni2080bv8s9jxiy-glibc-2.32-40/lib/librt.so.1)
./zig-cache/focus-local: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /nix/store/cz6fki95gy7zfhpp0vx7pcd0963f8716-libpng-apng-1.6.37/lib/libpng16.so.16)
Same error with and without nix-shell.