js, wip net native aot
This commit is contained in:
parent
d428940299
commit
99f553a4c6
4 changed files with 60 additions and 14 deletions
|
|
@ -5,6 +5,9 @@
|
|||
...
|
||||
}: let
|
||||
cfg = config.my.buildtools;
|
||||
dotnetPackage = with pkgs; (dotnetCorePackages.combinePackages [
|
||||
dotnet-sdk_8
|
||||
]);
|
||||
in {
|
||||
options.my.buildtools = {
|
||||
native = lib.mkEnableOption "include native build tools";
|
||||
|
|
@ -12,6 +15,7 @@ in {
|
|||
rust = lib.mkEnableOption "include rust build tools";
|
||||
jetbrains-remote-server = lib.mkEnableOption "setup jetbrais IDE installs so -remote-dev-server can be started";
|
||||
objective-c = lib.mkEnableOption "Objective-C with GNUStep";
|
||||
js = lib.mkEnableOption "node stuff";
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
|
|
@ -22,24 +26,43 @@ in {
|
|||
gnumake
|
||||
gcc
|
||||
gdb
|
||||
llvmPackages_latest.llvm
|
||||
llvmPackages.llvm
|
||||
llvmPackages.clangUseLLVM
|
||||
];
|
||||
})
|
||||
(lib.mkIf cfg.dotnet {
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
dotnet-sdk_8
|
||||
unstable.jetbrains.jdk
|
||||
unstable.jetbrains.rider
|
||||
|
||||
dotnetPackage
|
||||
|
||||
zlib
|
||||
zlib.dev
|
||||
openssl
|
||||
icu
|
||||
icu.dev
|
||||
|
||||
# native aot
|
||||
gcc
|
||||
libunwind
|
||||
];
|
||||
variables = {
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT = "1";
|
||||
};
|
||||
};
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
# native aot
|
||||
libunwind
|
||||
icu
|
||||
zlib
|
||||
zlib.dev
|
||||
openssl
|
||||
icu
|
||||
icu.dev
|
||||
dotnetPackage
|
||||
];
|
||||
})
|
||||
(lib.mkIf cfg.rust {
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
@ -82,5 +105,10 @@ in {
|
|||
gnumake
|
||||
]);
|
||||
})
|
||||
(lib.mkIf cfg.js {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nodejs
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue