nixos-config/shells/guile.nix
Gabriel Arazas 6542a0f3f4 shells/guile: init devshell
This is not a good devshell yet with incomplete toolset but it'll get
there.
2022-09-01 09:57:47 +08:00

27 lines
439 B
Nix

{ mkShell
, lib
, guile
, guile-hall
}:
let
guileVersion = lib.versions.majorMinor guile.version;
in
mkShell {
inherit guileVersion;
packages = [
guile
guile-hall
];
# This is already properly exported through setup hooks but to make
# intentions clearer.
shellHook = ''
export GUILE_LOAD_PATH GUILE_LOAD_COMPILED_PATH
if test $guileVersion == "3.0"; then
export GUILE_EXTENSIONS_PATH
fi
'';
}