Skip to content

Commit 0b08ee8

Browse files
committed
add development scripts to devenv
1 parent abfb9d5 commit 0b08ee8

File tree

2 files changed

+64
-45
lines changed

2 files changed

+64
-45
lines changed

devenv.nix

Lines changed: 63 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,32 @@
1-
{ pkgs, lib, config, inputs, stdenv, ... }:
1+
{
2+
pkgs,
3+
...
4+
}:
25

36
{
47
env.LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
5-
8+
69
languages.c.enable = true;
710
languages.cplusplus.enable = true;
811
languages.rust.enable = true;
912
# https://devenv.sh/reference/options/#languagesrustchannel
1013
languages.rust.channel = "stable";
1114

15+
languages.javascript = {
16+
enable = true;
17+
pnpm = {
18+
enable = true;
19+
install.enable = true;
20+
};
21+
};
22+
23+
scripts = {
24+
gluon.exec = "pnpm gluon $@";
25+
download.exec = "gluon download";
26+
import.exec = "gluon import";
27+
build.exec = "gluon build";
28+
};
29+
1230
packages = with pkgs; [
1331
sccache
1432
unzip
@@ -22,50 +40,51 @@
2240
libclang
2341
gcc
2442

25-
libxkbcommon libdrm
43+
libxkbcommon
44+
libdrm
2645

27-
# build time
28-
autoconf
29-
cargo
30-
dump_syms
31-
makeWrapper
32-
mimalloc
33-
nodejs
34-
perl
35-
pkg-config
36-
python3
37-
rustc
38-
rust-cbindgen
39-
unzip
40-
which
46+
# build time
47+
autoconf
48+
cargo
49+
dump_syms
50+
makeWrapper
51+
mimalloc
52+
nodejs
53+
perl
54+
pkg-config
55+
python3
56+
rustc
57+
rust-cbindgen
58+
unzip
59+
which
4160

42-
# runtime
43-
bzip2
44-
dbus
45-
dbus-glib
46-
file
47-
fontconfig
48-
freetype
49-
glib
50-
gnum4
51-
gtk3
52-
icu
53-
icu72
54-
libGL
55-
libGLU
56-
libevent
57-
libffi
58-
libjpeg
59-
libpng
60-
libstartup_notification
61-
libvpx
62-
libwebp
63-
nasm
64-
nspr
65-
nss_latest
66-
pango
67-
zip
68-
zlib
61+
# runtime
62+
bzip2
63+
dbus
64+
dbus-glib
65+
file
66+
fontconfig
67+
freetype
68+
glib
69+
gnum4
70+
gtk3
71+
icu
72+
icu72
73+
libGL
74+
libGLU
75+
libevent
76+
libffi
77+
libjpeg
78+
libpng
79+
libstartup_notification
80+
libvpx
81+
libwebp
82+
nasm
83+
nspr
84+
nss_latest
85+
pango
86+
zip
87+
zlib
6988

7089
bzip2
7190
dbus

gluon.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@
3434
],
3535
"licenseType": "MPL-2.0"
3636
}
37-
}
37+
}

0 commit comments

Comments
 (0)