mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
shells/guile: init devshell
This is not a good devshell yet with incomplete toolset but it'll get there.
This commit is contained in:
parent
881d015674
commit
6542a0f3f4
@ -5,6 +5,8 @@ with pkgs; {
|
||||
gnu = callPackage ./gnu.nix { };
|
||||
gnome = callPackage ./gnome.nix { };
|
||||
nix = callPackage ./nix.nix { };
|
||||
guile = callPackage ./guile.nix { };
|
||||
guile3 = callPackage ./guile.nix { guile = guile_3_0; };
|
||||
hugo = callPackage ./hugo.nix { };
|
||||
rust = callPackage ./rust.nix { };
|
||||
tic-80 = callPackage ./tic-80.nix { };
|
||||
|
26
shells/guile.nix
Normal file
26
shells/guile.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ 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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user