Skip to content

Commit

Permalink
nix: fix vere compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
h33p committed Apr 18, 2024
1 parent 25a7183 commit 1d137d3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
7 changes: 7 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ doesn't match the version of `clang` installed on your system. To address this,
run `clang --version` and pass the version number via
`--clang_version="<version_string>"` to the failing command.

If build fails on nix/NixOS, you should pass `ACLOCAL_PATH` environment
variable to bazel, using `--action_env=ACLOCAL_PATH=$ACLOCAL_PATH`, like so:

```
bazel build :urbit --action_env=ACLOCAL_PATH=$ACLOCAL_PATH
```

[^1]: If you're interested in digging into the details of the build system,
check out [`WORKSPACE.bazel`](WORKSPACE.bazel),
[`BUILD.bazel`](BUILD.bazel), [`bazel/`](bazel), and the multiple
Expand Down
2 changes: 1 addition & 1 deletion bazel/third_party/avahi/avahi.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ configure_make(
"@platforms//os:macos": ["--jobs=`sysctl -n hw.logicalcpu`"],
"//conditions:default": ["--jobs=`nproc`"],
}),
configure_options = ["--with-dbus-system-address='unix:path=/var/run/dbus/system_bus_socket' --with-xml=none --disable-libevent --disable-glib --disable-gobject --disable-gdbm --disable-qt3 --disable-qt4 --disable-qt5 --disable-gtk --disable-gtk3 --disable-mono --disable-monodoc --disable-python --disable-libdaemon --enable-compat-libdns_sd --disable-rpath"],
configure_options = ["--with-dbus-system-address='unix:path=/var/run/dbus/system_bus_socket' --with-xml=none --disable-libevent --disable-glib --disable-gobject --disable-gdbm --disable-qt3 --disable-qt4 --disable-qt5 --disable-gtk --disable-gtk3 --disable-mono --disable-monodoc --disable-python --disable-libdaemon --enable-compat-libdns_sd --disable-rpath --with-distro=none"],
lib_source = ":all",
# out_include_dir = "avahi-compat-libdns_sd",
deps = ["@dbus"],
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,16 @@
]
++ (with pkgs; [
autoconf
autoconf-archive
automake
bazel_5
bazel_6
binutils # for `nm`
jdk11_headless
libtool
m4
pkg-config
git
perl
]);
extraBuildCommands = ''
chmod +w usr
Expand Down

0 comments on commit 1d137d3

Please sign in to comment.