Skip to content

Commit 2b3d8ec

Browse files
committed
🐛 Fix packaging stuff + nixos
1 parent acafecf commit 2b3d8ec

File tree

7 files changed

+310
-21
lines changed

7 files changed

+310
-21
lines changed

.envrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_url "https://raw.githubusercontent.com/cachix/devenv/95f329d49a8a5289d31e0982652f7058a189bfca/direnvrc" "sha256-d+8cBpDfDBj41inrADaJt+bDWhOktwslgoP5YiGJ1v0="
2+
3+
use devenv

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,16 @@ node_modules/
22
engine/
33
.gluon/
44
dist/
5+
# Devenv
6+
.devenv*
7+
devenv.local.nix
8+
9+
# direnv
10+
.direnv
11+
12+
# pre-commit
13+
.pre-commit-config.yaml
14+
15+
# System mozillabuild
16+
mozillabuild
17+

devenv.lock

+161
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
{
2+
"nodes": {
3+
"devenv": {
4+
"locked": {
5+
"dir": "src/modules",
6+
"lastModified": 1718265154,
7+
"owner": "cachix",
8+
"repo": "devenv",
9+
"rev": "1983f635c29dc68bb0d29b3a7e227579a1d98788",
10+
"treeHash": "65018ab26133a442cd98ab058d07be455165a203",
11+
"type": "github"
12+
},
13+
"original": {
14+
"dir": "src/modules",
15+
"owner": "cachix",
16+
"repo": "devenv",
17+
"type": "github"
18+
}
19+
},
20+
"fenix": {
21+
"inputs": {
22+
"nixpkgs": [
23+
"nixpkgs"
24+
],
25+
"rust-analyzer-src": "rust-analyzer-src"
26+
},
27+
"locked": {
28+
"lastModified": 1717827974,
29+
"owner": "nix-community",
30+
"repo": "fenix",
31+
"rev": "ab655c627777ab5f9964652fe23bbb1dfbd687a8",
32+
"treeHash": "a558435d5e7684dcdaf311568caba126c935252a",
33+
"type": "github"
34+
},
35+
"original": {
36+
"owner": "nix-community",
37+
"repo": "fenix",
38+
"type": "github"
39+
}
40+
},
41+
"flake-compat": {
42+
"flake": false,
43+
"locked": {
44+
"lastModified": 1696426674,
45+
"owner": "edolstra",
46+
"repo": "flake-compat",
47+
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
48+
"treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb",
49+
"type": "github"
50+
},
51+
"original": {
52+
"owner": "edolstra",
53+
"repo": "flake-compat",
54+
"type": "github"
55+
}
56+
},
57+
"gitignore": {
58+
"inputs": {
59+
"nixpkgs": [
60+
"pre-commit-hooks",
61+
"nixpkgs"
62+
]
63+
},
64+
"locked": {
65+
"lastModified": 1709087332,
66+
"owner": "hercules-ci",
67+
"repo": "gitignore.nix",
68+
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
69+
"treeHash": "ca14199cabdfe1a06a7b1654c76ed49100a689f9",
70+
"type": "github"
71+
},
72+
"original": {
73+
"owner": "hercules-ci",
74+
"repo": "gitignore.nix",
75+
"type": "github"
76+
}
77+
},
78+
"nixpkgs": {
79+
"locked": {
80+
"lastModified": 1716977621,
81+
"owner": "cachix",
82+
"repo": "devenv-nixpkgs",
83+
"rev": "4267e705586473d3e5c8d50299e71503f16a6fb6",
84+
"treeHash": "6d9f1f7ca0faf1bc2eeb397c78a49623260d3412",
85+
"type": "github"
86+
},
87+
"original": {
88+
"owner": "cachix",
89+
"ref": "rolling",
90+
"repo": "devenv-nixpkgs",
91+
"type": "github"
92+
}
93+
},
94+
"nixpkgs-stable": {
95+
"locked": {
96+
"lastModified": 1718060059,
97+
"owner": "NixOS",
98+
"repo": "nixpkgs",
99+
"rev": "a3c8d64ba846725f040582b2d3b875466d2115bd",
100+
"treeHash": "4378720d991b2af92b2e078b80bff5ec363a11c5",
101+
"type": "github"
102+
},
103+
"original": {
104+
"owner": "NixOS",
105+
"ref": "nixos-23.11",
106+
"repo": "nixpkgs",
107+
"type": "github"
108+
}
109+
},
110+
"pre-commit-hooks": {
111+
"inputs": {
112+
"flake-compat": "flake-compat",
113+
"gitignore": "gitignore",
114+
"nixpkgs": [
115+
"nixpkgs"
116+
],
117+
"nixpkgs-stable": "nixpkgs-stable"
118+
},
119+
"locked": {
120+
"lastModified": 1717664902,
121+
"owner": "cachix",
122+
"repo": "pre-commit-hooks.nix",
123+
"rev": "cc4d466cb1254af050ff7bdf47f6d404a7c646d1",
124+
"treeHash": "def977583217aad11744d144c1f7fc216ce450bf",
125+
"type": "github"
126+
},
127+
"original": {
128+
"owner": "cachix",
129+
"repo": "pre-commit-hooks.nix",
130+
"type": "github"
131+
}
132+
},
133+
"root": {
134+
"inputs": {
135+
"devenv": "devenv",
136+
"fenix": "fenix",
137+
"nixpkgs": "nixpkgs",
138+
"pre-commit-hooks": "pre-commit-hooks"
139+
}
140+
},
141+
"rust-analyzer-src": {
142+
"flake": false,
143+
"locked": {
144+
"lastModified": 1718185781,
145+
"owner": "rust-lang",
146+
"repo": "rust-analyzer",
147+
"rev": "fa486e694e1fe7774f20350bb15ff933f670dc3c",
148+
"treeHash": "d5c8aa18755af93f07200192dfba2a16379cb666",
149+
"type": "github"
150+
},
151+
"original": {
152+
"owner": "rust-lang",
153+
"ref": "nightly",
154+
"repo": "rust-analyzer",
155+
"type": "github"
156+
}
157+
}
158+
},
159+
"root": "root",
160+
"version": 7
161+
}

devenv.nix

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{ pkgs, lib, config, inputs, stdenv, ... }:
2+
3+
{
4+
env.LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
5+
6+
languages.c.enable = true;
7+
languages.cplusplus.enable = true;
8+
languages.rust.enable = true;
9+
# https://devenv.sh/reference/options/#languagesrustchannel
10+
languages.rust.channel = "stable";
11+
12+
packages = with pkgs; [
13+
sccache
14+
unzip
15+
16+
libllvm
17+
libclang
18+
llvm
19+
alsa-lib
20+
libpulseaudio
21+
rust-cbindgen
22+
libclang
23+
gcc
24+
25+
libxkbcommon libdrm
26+
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
41+
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
69+
70+
bzip2
71+
dbus
72+
dbus-glib
73+
file
74+
fontconfig
75+
freetype
76+
glib
77+
gtk3
78+
libffi
79+
libGL
80+
libGLU
81+
libevent
82+
libjpeg
83+
libpng
84+
libstartup_notification
85+
libvpx
86+
libwebp
87+
nasm
88+
nspr
89+
pango
90+
perl
91+
xorg.libX11
92+
xorg.libXcursor
93+
xorg.libXdamage
94+
xorg.libXext
95+
xorg.libXft
96+
xorg.libXi
97+
xorg.libXrender
98+
xorg.libXt
99+
xorg.libXtst
100+
xorg.pixman
101+
xorg.xorgproto
102+
zip
103+
zlib
104+
];
105+
106+
enterShell = ''
107+
cxxLib=$( echo -n ${pkgs.gcc}/include/c++/* )
108+
archLib=$cxxLib/$( ${pkgs.gcc}/bin/gcc -dumpmachine )
109+
110+
UNSET AS
111+
112+
cat - > mozconfig <<EOF
113+
ac_add_options --disable-bootstrap
114+
#ac_add_options --without-wasm-sandboxed-libraries # this may be needed
115+
#mk_add_options AUTOCONF={autoconf213}/bin/autoconf
116+
ac_add_options --with-libclang-path=${pkgs.libclang.lib}/lib
117+
#ac_add_options --with-clang-path=${pkgs.clang}/bin/clang
118+
#export BINDGEN_CFLAGS="-cxx-isystem $cxxLib -isystem $archLib"
119+
#export LIBCLANG_PATH="${pkgs.libclang.lib}/lib"
120+
#export CC="${pkgs.gcc}/bin/cc"
121+
#export CXX="${pkgs.gcc}/bin/c++"
122+
EOF
123+
'';
124+
}

devenv.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
inputs:
2+
nixpkgs:
3+
url: github:cachix/devenv-nixpkgs/rolling
4+
fenix:
5+
url: github:nix-community/fenix
6+
inputs:
7+
nixpkgs:
8+
follows: nixpkgs

gluon.json

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

src/quark-runtime/installer/package-manifest.in

-20
Original file line numberDiff line numberDiff line change
@@ -351,26 +351,6 @@ bin/libfreebl_64int_3.so
351351
@BINPATH@/maintenanceservice_installer.exe
352352
#endif
353353

354-
; [Crash Reporter]
355-
;
356-
#ifdef MOZ_CRASHREPORTER
357-
#ifdef XP_MACOSX
358-
@BINPATH@/crashreporter.app/
359-
#else
360-
@BINPATH@/crashreporter@BIN_SUFFIX@
361-
@RESPATH@/crashreporter.ini
362-
#ifdef XP_UNIX
363-
@RESPATH@/Throbber-small.gif
364-
#elif defined(XP_WIN)
365-
@BINPATH@/@DLL_PREFIX@mozwer@DLL_SUFFIX@
366-
#endif
367-
#endif
368-
;@RESPATH@/browser/crashreporter-override.ini
369-
#ifdef MOZ_CRASHREPORTER_INJECTOR
370-
@BINPATH@/breakpadinjector.dll
371-
#endif
372-
#endif
373-
374354
; [ minidump-analyzer ]
375355
;
376356
#ifdef MOZ_CRASHREPORTER

0 commit comments

Comments
 (0)