tangled
alpha
login
or
join now
notnite.com
/
moonlight
3
fork
atom
this repo has no description
3
fork
atom
overview
issues
pulls
pipelines
Add firefox output to Nix package
vriska.bsky.social
11 months ago
6e1eda03
cbcf4afc
+12
-1
2 changed files
expand all
collapse all
unified
split
nix
default.nix
packages
browser
manifestv2.json
+6
nix/default.nix
···
11
11
12
12
src = ./..;
13
13
14
14
+
outputs = [ "out" "firefox" ];
15
15
+
14
16
nativeBuildInputs = [
15
17
nodejs_22
16
18
pnpm_10.configHook
···
30
32
runHook preBuild
31
33
32
34
pnpm run build
35
35
+
pnpm run browser-mv2
33
36
34
37
runHook postBuild
35
38
'';
···
38
41
runHook preInstall
39
42
40
43
cp -r dist $out
44
44
+
45
45
+
mkdir -p $firefox/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/
46
46
+
mv $out/browser-mv2 $firefox/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{0fb6d66f-f22d-4555-a87b-34ef4bea5e2a}
41
47
42
48
runHook postInstall
43
49
'';
+6
-1
packages/browser/manifestv2.json
···
24
24
"run_at": "document_start",
25
25
"world": "MAIN"
26
26
}
27
27
-
]
27
27
+
],
28
28
+
"browser_specific_settings": {
29
29
+
"gecko": {
30
30
+
"id": "{0fb6d66f-f22d-4555-a87b-34ef4bea5e2a}"
31
31
+
}
32
32
+
}
28
33
}