-
Notifications
You must be signed in to change notification settings - Fork 2
/
devshells.nix
288 lines (269 loc) · 5.94 KB
/
devshells.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
{ pkgs }:
{
default = pkgs.mkShell {
buildInputs = with pkgs; [
git
just
age
sops
ssh-to-age
home-manager
nixfmt-rfc-style
];
name = "bootstrap";
shellHook = ''
zsh && exit
'';
};
###############################################
## GCC
###############################################
gcc = pkgs.mkShell {
buildInputs = with pkgs; [
gcc
gnumake
cmake
meson
ninja
pkg-config
boost
# qt5.qtbase
# qt5.qttools
# qt5.qtx11extras
# qt5.wrapQtAppsHook
# qt5.qtsvg
# protobuf
# libyamlcpp
# zxing-cpp
# zxing
# xorg.libX11
# xorg.libXi
# xorg.libXinerama
];
name = "gcc";
shellHook = ''
zsh && exit
'';
};
###############################################
## QT6
###############################################
qt6 = pkgs.mkShell {
buildInputs = with pkgs; [
qt6.qmake
pkg-config
qt6.wrapQtAppsHook
qt6.qtbase
qt6.qttools
qt6.qtsvg
qt6.qtwayland
qt6.qt5compat
qt6.qtmultimedia
qt6.qtimageformats
libGLU
libunarr
qt6Packages.poppler
];
};
###############################################
## NodeJS
###############################################
nodejs = pkgs.mkShell {
buildInputs = with pkgs; [
yarn
nodejs
electron
python3
## cargo-tauri
# cargo
# rustc
# openssl
# pkg-config
# gobject-introspection
# atk
# libsoup
# glib
# gtk3
# webkitgtk
# quickjs
# libappindicator-gtk3
# libayatana-appindicator
];
# ELECTRON_OVERRIDE_DIST_PATH = "${pkgs.electron_20}/bin";
};
###############################################
## Golang
###############################################
go = pkgs.mkShell {
buildInputs = with pkgs; [
go
gotools
gccgo
delve
pkg-config
alsa-lib
flac
];
};
###############################################
## Rust
###############################################
# https://github.com/BKSalman/ytdlp-gui/blob/main/flake.nix
rust = pkgs.mkShell {
doCheck = false;
buildType = "debug";
# OPENSSL_NO_VENDOR = 1;
buildInputs = with pkgs; [
cargo
rustc
meson
ninja
clang
openssl
pkg-config
curl
cmake
gtk4
glib
libadwaita
wrapGAppsHook4
appstream-glib
desktop-file-utils
libxml2
dbus
gst_all_1.gstreamer
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
alsa-lib
lame
# libxkbcommon
# xorg.libX11
# xorg.libxcb
# xorg.xcbutil
# xorg.xcbutilwm
# xorg.xcbutilimage
# xorg.xcbutilkeysyms
# freetype
# fontconfig
];
};
###############################################
## Python
###############################################
# python setup.py install --root=/home/iab/devs/
python = pkgs.mkShell {
buildInputs = with pkgs; [
python3
virtualenv
python3Packages.pip
];
propagatedBuildInputs = with pkgs.python3.pkgs; [
requests
chardet
docutils
markdown
markups
pyenchant
pygments
# pyqt5
# pyqt6
];
};
###############################################
## Ruby
###############################################
# bundix -l # generates gemset.nix & Gemfile.lock
# cp Gemfile Gemfile.lock gemset.nix
ruby = pkgs.mkShell {
buildInputs = with pkgs; [
# ruby.devEnv
ruby
bundix
gnumake
pkg-config
git
sqlite
postgresql
libpcap
libxml2
libxslt
];
};
###############################################
## Java
###############################################
java = pkgs.mkShell {
buildInputs = with pkgs; [
jdk
gradle
xorg.libXrender
];
};
###############################################
## Android
###############################################
# https://discourse.nixos.org/t/building-expo-react-native-android-app-on-nixos/38194/3
apk =
let
pinnedJDK = pkgs.jdk17;
buildToolsVersion = "34.0.0";
ndkVersion = "25.1.8937393";
androidComposition = pkgs.androidenv.composeAndroidPackages {
buildToolsVersions = [
buildToolsVersion
"33.0.1"
];
platformVersions = [
"34"
"33"
"32"
"31"
];
# armeabi-v7a (ARM 32-bit), arm64-v8a (ARM 64-bit), and x86-64 (x86 64-bit)
abiVersions = [ "arm64-v8a" ];
cmakeVersions = [
"3.10.2"
"3.22.1"
];
includeEmulator = true;
emulatorVersion = "34.1.9";
includeNDK = true;
ndkVersions = [ ndkVersion ];
};
in
pkgs.mkShell rec {
buildInputs = with pkgs; [
pinnedJDK
androidComposition.androidsdk
pkg-config
flutter
];
JAVA_HOME = pinnedJDK;
ANDROID_SDK_ROOT = "${androidComposition.androidsdk}/libexec/android-sdk";
ANDROID_NDK_ROOT = "${ANDROID_SDK_ROOT}/ndk-bundle";
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${ANDROID_SDK_ROOT}/build-tools/${buildToolsVersion}/aapt2";
};
/*
# Flutter
keytool -genkey -v -keystore key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
cp key.jks android/app
micro android/key.properties
storePassword=123456
keyPassword=123456
keyAlias=key
storeFile=./key.jks
*/
###############################################
## Haskell
###############################################
haskell = pkgs.mkShell {
buildInputs = with pkgs; [
ghc
stack
cabal-install
haskell-language-server
];
};
}