mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
6542a0f3f4
This is not a good devshell yet with incomplete toolset but it'll get there.
27 lines
439 B
Nix
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
|
|
'';
|
|
}
|