-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdefault.devshell.nix
69 lines (65 loc) · 1.69 KB
/
default.devshell.nix
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{ pkgs, masterPkgs, androidPkgs, androidSdk, rust-bin }:
let
pinnedJDK = pkgs.jdk17;
in
pkgs.mkShell {
name = "Rune Development Shell";
buildInputs = with pkgs; [
(rust-bin.stable.latest.default.override {
extensions = [ "rust-src" ];
targets = [ "armv7-linux-androideabi" "aarch64-linux-android" "x86_64-linux-android" ];
})
yq
openssl
pkg-config
stdenv
clippy
rust-analyzer
rustup
masterPkgs.flutter
android-studio
androidSdk
pinnedJDK
clang
cmake
protobuf_26
pcre2
ninja
unzip
wayland
eza
fd
gtk3
libpulseaudio
pulseaudioFull
fontconfig
mesa
libxkbcommon
pkgs.xorg.libX11
libGL
alsa-lib.dev
wayland.dev
zstd.dev
lmdb.dev
sqlite.dev
util-linux.dev
libsysprof-capture
libayatana-appindicator
libnotify.dev
];
env = {
JAVA_HOME = "${pinnedJDK}";
ANDROID_HOME = "${androidSdk}/share/android-sdk";
RUST_BACKTRACE = 1;
ANDROID_NDK_PATH = "${androidSdk}/share/android-sdk/ndk/ndk-27-1-12297006";
};
shellHook = ''
flutter config --jdk-dir "${pinnedJDK}"
alias ls=exa
alias find=fd
alias rinf='flutter pub run rinf'
export LD_LIBRARY_PATH=$(nix-build '<nixpkgs>' -A wayland)/lib:${pkgs.fontconfig.lib}/lib:${pkgs.libxkbcommon}/lib:${pkgs.xorg.libX11}/lib:${pkgs.libGL}/lib:$LD_LIBRARY_PATH
export GRADLE_OPTS="-Dorg.gradle.project.android.aapt2FromMavenOverride=${androidSdk}/share/android-sdk/build-tools/34.0.0/aapt2"
export PATH=${androidSdk}/share/android-sdk/platform-tools:${androidSdk}/share/android-sdk/tools:${androidSdk}/share/android-sdk/tools/bin:$HOME/.cargo/bin:$HOME/.pub-cache/bin:$PATH
'';
}