Skip to content

Commit

Permalink
build-scripts: Ensure ASDF finds git submodules in nix-shell.
Browse files Browse the repository at this point in the history
Note that it is possible to override a library available at _build by placing a
different version at ~/common-lisp.
  • Loading branch information
aadcg committed Apr 11, 2024
1 parent 38c69b3 commit 38bff6b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-scripts/shell-electron.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ stdenv.mkDerivation {
pkgs.sqlite.out
pkgs.libressl.out ]};";

shellHook =
''
NYXT_ROOT=`dirname ${toString ../README.org}`;
export CL_SOURCE_REGISTRY=$HOME/common-lisp//:$NYXT_ROOT/_build//:$CL_SOURCE_REGISTRY;
'';

}
7 changes: 7 additions & 0 deletions build-scripts/shell-gi-gtk.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,11 @@ stdenv.mkDerivation {

GIO_MODULE_DIR = "${pkgs.glib-networking.out}/lib/gio/modules/";
GIO_EXTRA_MODULES = "${pkgs.glib-networking.out}/lib/gio/modules/";

shellHook =
''
NYXT_ROOT=`dirname ${toString ../README.org}`;
export CL_SOURCE_REGISTRY=$HOME/common-lisp//:$NYXT_ROOT/_build//:$CL_SOURCE_REGISTRY;
'';

}

0 comments on commit 38bff6b

Please sign in to comment.