Android and Desktop now building in the rider-fhs nix shell.

This commit is contained in:
2025-12-22 19:07:38 +00:00
parent 2a9f65b420
commit 18cdd09333
7 changed files with 868 additions and 46 deletions

View File

@@ -13,12 +13,14 @@
} }:
(pkgs.buildFHSEnv {
name = "avalonia cross platform vscodium env";
name = "avalonia cross platform dev env";
targetPkgs = pkgs: (with pkgs; [
vscodium
dotnetCorePackages.dotnet_8.sdk
mono
omnisharp-roslyn
just
jdk17_headless
libx11
@@ -33,21 +35,16 @@
androidPkgs_34.androidsdk
]);
nativeBuildInputs = with pkgs; [
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions; [
avaloniateam.vscode-avalonia
muhammad-sammy.csharp
];
})
];
# nativeBuildInputs = with pkgs; [];
runScript = ''
# what
# idk why this comment is needed but if i dont put it here the export wont work
export SHELL=/bin/bash
export ANDROID_HOME=/usr/libexec/android-sdk
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
nohup codium . &
echo "Avalonia dev shell"
export PS1="[\u@\h \w] (avalonia-dev-shell) $ "
exec bash
'';
}).env