dev: move shell.nix out of test/

And delete test/, as it will live elsewhere when Doom core and modules
are separated.
This commit is contained in:
Henrik Lissner 2022-03-31 01:28:00 +02:00
parent a9c22b704b
commit 78ecc56ed3
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -9,7 +9,7 @@
# #
# With your own DOOMDIR: # With your own DOOMDIR:
# #
# nix-shell --argstr doomdir ~/.config/doom # nix-shell --argstr doomdir ~/.config/other-doom-config
# #
# With a specific version of Emacs # With a specific version of Emacs
# #
@ -39,9 +39,9 @@
]; ];
} }
, emacs ? "27" , emacs ? "27"
, emacsdir ? "$(pwd)/.." , emacsdir ? "$(pwd)"
, doomdir ? "$(pwd)" , doomdir ? ""
, doomlocaldir ? "$(pwd)/.local" }: , doomlocaldir ? "$EMACSDIR/.local" }:
let emacsPkg = (if emacs == "26" then pkgs.emacs26 let emacsPkg = (if emacs == "26" then pkgs.emacs26
else if emacs == "26.3" then pkgs.emacs26 else if emacs == "26.3" then pkgs.emacs26
@ -88,6 +88,6 @@ in pkgs.stdenv.mkDerivation {
cp -r "$EMACSDIR/.local/straight/repos" ./repos cp -r "$EMACSDIR/.local/straight/repos" ./repos
fi fi
popd >/dev/null popd >/dev/null
echo "Ready!" echo "Ready! Remember to 'doom sync'!"
''; '';
} }