-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
33 lines (30 loc) · 1003 Bytes
/
Copy pathflake.nix
File metadata and controls
33 lines (30 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
description = "stash dev shell";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
outputs = { self, nixpkgs }:
let
forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ];
in {
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system};
in {
default = pkgs.mkShell {
packages = [
pkgs.nodejs
pkgs.pnpm
# Android build toolchain
pkgs.jdk17 # Java 17 for Gradle compatibility
pkgs.gradle # Build system
pkgs.android-tools # adb, fastboot
];
shellHook = ''
# Load ANDROID_HOME from .env if present
if [ -f .env ]; then
set -a; source .env; set +a
fi
echo "stash dev shell — node $(node -v), java $(java -version 2>&1 | head -1)"
'';
};
});
};
}