mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 06:12:51 +00:00
flake change
This commit is contained in:
@@ -64,6 +64,7 @@
|
|||||||
fen.targets.x86_64-linux-android.stable.rust-std
|
fen.targets.x86_64-linux-android.stable.rust-std
|
||||||
fen.targets.i686-linux-android.stable.rust-std
|
fen.targets.i686-linux-android.stable.rust-std
|
||||||
fen.targets.aarch64-apple-ios.stable.rust-std
|
fen.targets.aarch64-apple-ios.stable.rust-std
|
||||||
|
fen.targets.aarch64-apple-ios-sim.stable.rust-std
|
||||||
];
|
];
|
||||||
|
|
||||||
defaultPkgs = with pkgs; [
|
defaultPkgs = with pkgs; [
|
||||||
@@ -94,6 +95,8 @@
|
|||||||
clang-tools
|
clang-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
mkShellFn = if pkgs.stdenv.isDarwin then pkgs.mkShellNoCC else pkgs.mkShell;
|
||||||
|
|
||||||
ndkId = "27-1-12297006"; # nix flake show github:tadfisher/android-nixpkgs | grep ndk
|
ndkId = "27-1-12297006"; # nix flake show github:tadfisher/android-nixpkgs | grep ndk
|
||||||
ndkAttr = "ndk-${ndkId}";
|
ndkAttr = "ndk-${ndkId}";
|
||||||
ndkVer = builtins.replaceStrings ["-"] ["."] ndkId;
|
ndkVer = builtins.replaceStrings ["-"] ["."] ndkId;
|
||||||
@@ -219,13 +222,13 @@
|
|||||||
export PROMPT_COMMAND=". \"$FRESSH_STARSHIP_PREINIT\""
|
export PROMPT_COMMAND=". \"$FRESSH_STARSHIP_PREINIT\""
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
default = pkgs.mkShell {
|
default = mkShellFn {
|
||||||
packages = defaultPkgs ++ [remoteAndroidSdk.androidSdk];
|
packages = defaultPkgs ++ [remoteAndroidSdk.androidSdk];
|
||||||
shellHook =
|
shellHook =
|
||||||
commonAndroidInit remoteAndroidSdk.sdkRoot;
|
commonAndroidInit remoteAndroidSdk.sdkRoot;
|
||||||
};
|
};
|
||||||
|
|
||||||
android-emulator = pkgs.mkShell {
|
android-emulator = mkShellFn {
|
||||||
packages = defaultPkgs ++ [fullAndroidSdk.androidSdk];
|
packages = defaultPkgs ++ [fullAndroidSdk.androidSdk];
|
||||||
shellHook =
|
shellHook =
|
||||||
commonAndroidInit fullAndroidSdk.sdkRoot;
|
commonAndroidInit fullAndroidSdk.sdkRoot;
|
||||||
|
|||||||
Reference in New Issue
Block a user