migrated all languages to devshell
This commit is contained in:
@@ -1,15 +1,32 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
packages = builtins.attrValues {
|
||||
inherit (pkgs) julia; # High-performance dynamic language for technical computing
|
||||
};
|
||||
in
|
||||
{
|
||||
options.my.dev.julia.enable = lib.mkEnableOption "enable";
|
||||
|
||||
options = {
|
||||
my.dev.julia.enable = lib.mkEnableOption "Install Julia globally";
|
||||
devShells.julia = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.mkShell {
|
||||
inherit packages;
|
||||
name = "julia-dev-shell";
|
||||
shellHook = ''
|
||||
echo "🔬 Julia dev environment"
|
||||
'';
|
||||
};
|
||||
description = "Julia development shell";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf config.my.dev.julia.enable {
|
||||
users.users.jawz.packages = builtins.attrValues {
|
||||
inherit (pkgs) julia;
|
||||
users.users.jawz = {
|
||||
inherit packages;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user