-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevenv.nix
138 lines (121 loc) · 2.66 KB
/
devenv.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{ pkgs, lib, config, inputs, ... }: {
cachix.enable = false;
# certificates = [
# "localhost"
# "localhost:3000"
# ];
packages = with pkgs; [
# Native
wrapGAppsHook4
pkg-config
# Wasm
wasm-pack
binaryen
# Tauri
# gobject-introspection
# cargo-tauri
# libGL
# openssl
# glib
# pango
# atk
# gdk-pixbuf
# gtk3
# webkitgtk_4_1
# cairo
# atkmm
# libsoup_3
# glib-networking
at-spi2-atk
atkmm
cairo
gdk-pixbuf
glib
gtk3
harfbuzz
librsvg
libsoup_3
pango
webkitgtk_4_1
openssl
xdg-utils
];
# scripts = {
# setup.exec = ''
# yarn install --frozen-lockfile
# yarn wasm-pack build backend/wasm -t web --release
# '';
# };
env = {
# OpenSSL
OPENSSL_DIR = "${pkgs.openssl.dev}";
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include/";
# GIO
GIO_MODULE_DIR = "${pkgs.glib-networking.out}/lib/gio/modules/";
GIO_EXTRA_MODULES = "${pkgs.glib-networking.out}/lib/gio/modules/";
WEBKIT_DISABLE_COMPOSITING_MODE = "1";
WEBKIT_DISABLE_DMABUF_RENDERER = "1";
};
enterShell = ''
export NDK_HOME=$ANDROID_HOME/ndk-bundle
'';
android = {
enable = true;
# platforms.version = [ "32" "34" ];
# systemImageTypes = [ "google_apis_playstore" ];
# abis = [ "arm64-v8a" "x86_64" ];
# cmdLineTools.version = "8.0";
# tools.version = "26.1.1";
# platformTools.version = "34.0.4";
buildTools.version = [ "34.0.0" ];
emulator.enable = false;
sources.enable = false;
systemImages.enable = false;
ndk = {
enable = true;
version = [ "26.1.10909125" ];
};
googleAPIs.enable = false;
googleTVAddOns.enable = false;
extras = [ ];
extraLicenses = [
# "android-sdk-preview-license"
# "android-sdk-arm-dbt-license"
# "google-gdk-license"
# "intel-android-extra-license"
# "intel-android-sysimage-license"
# "mips-android-sysimage-license"
];
};
languages = {
javascript = {
enable = true;
corepack.enable = true;
# yarn = {
# enable = true;
# package = pkgs.yarn-berry;
# };
};
typescript = {
enable = true;
};
rust = {
enable = true;
channel = "stable";
targets = [
# Wasm
"wasm32-unknown-unknown"
# Android
"aarch64-linux-android"
"armv7-linux-androideabi"
"i686-linux-android"
"x86_64-linux-android"
];
};
};
pre-commit.hooks = {
actionlint.enable = true;
rustfmt.enable = false;
};
}