Skip to content

Commit 24e003a

Browse files
authored
refactor: use language tags everywhere (#261)
1 parent 9ee8fb0 commit 24e003a

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

hm-module/mods.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ in {
6060
profileName: profile: let
6161
themesFilePath = "${profilePath}/${profileName}/zen-themes.json";
6262

63-
updateModsScript = pkgs.writeShellScript "zen-mods-update-${profileName}" ''
63+
updateModsScript = pkgs.writeShellScript "zen-mods-update-${profileName}" '' # bash
6464
THEMES_FILE="${themesFilePath}"
6565
MODS="${lib.concatStringsSep " " profile.mods}"
6666
BASE_DIR="${profilePath}/${profileName}"

hm-module/places.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ in {
499499
.groups = (.groups | sort_by(.index // 0))
500500
'';
501501

502-
updateScript = pkgs.writeShellScript "zen-sessions-update-${profileName}" ''
502+
updateScript = pkgs.writeShellScript "zen-sessions-update-${profileName}" '' # bash
503503
SESSIONS_FILE="${sessionsFile}"
504504
SESSIONS_TMP="$(mktemp)"
505505
SESSIONS_MODIFIED="$(mktemp)"
@@ -568,7 +568,7 @@ in {
568568
rm -f "$BACKUP_FILE"
569569
'';
570570
in
571-
nameValuePair "zen-sessions-${profileName}" (lib.hm.dag.entryAfter ["writeBoundary"] ''
571+
nameValuePair "zen-sessions-${profileName}" (lib.hm.dag.entryAfter ["writeBoundary"] '' # bash
572572
${updateScript}
573573
if [[ "$?" -eq 0 ]]; then
574574
$VERBOSE_ECHO "zen-sessions: Updated spaces/pins for profile '${profileName}'"

hm-module/sine.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ in {
104104
profileName: profile: let
105105
modsFilePath = "${profilePath}/${profileName}/chrome/sine-mods/mods.json";
106106

107-
updateSineModsScript = pkgs.writeShellScript "zen-sine-mods-update-${profileName}" ''
107+
updateSineModsScript = pkgs.writeShellScript "zen-sine-mods-update-${profileName}" '' # bash
108108
MODS_FILE="${modsFilePath}"
109109
SINE_MODS="${lib.concatStringsSep " " profile.sine.mods}"
110110
BASE_DIR="${profilePath}/${profileName}"
@@ -271,7 +271,7 @@ in {
271271
fi
272272
'';
273273
in
274-
nameValuePair "zen-sine-mods-${profileName}" (lib.hm.dag.entryAfter ["writeBoundary"] ''
274+
nameValuePair "zen-sine-mods-${profileName}" (lib.hm.dag.entryAfter ["writeBoundary"] '' # bash
275275
${updateSineModsScript}
276276
if [[ "$?" -eq 0 ]]; then
277277
$VERBOSE_ECHO "zen-sine-mods: Updated sine mods for profile '${profileName}'"

package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
then "zen-browser"
6262
else binaryName;
6363

64-
installDarwin = ''
64+
installDarwin = '' # bash
6565
runHook preInstall
6666
6767
mkdir -p "$out/Applications" "$out/bin"
@@ -97,7 +97,7 @@
9797
runHook postInstall
9898
'';
9999

100-
installLinux = ''
100+
installLinux = '' # bash
101101
runHook preInstall
102102
103103
# Linux tarball installation

tests/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
inherit pkgs home-manager;
1111
zen-browser-flake = self;
1212

13-
wrapWithX11 = testScript: ''
13+
wrapWithX11 = testScript: '' # python
1414
machine.succeed("( nohup Xvfb :99 -screen 0 1024x768x24 </dev/null >>/tmp/xvfb.log 2>&1 & )")
1515
machine.succeed("sleep 2")
1616
machine.succeed("su - testuser -c 'DISPLAY=:99 timeout 5 zen-beta about:blank' || true")
@@ -53,7 +53,7 @@
5353
];
5454
};
5555

56-
testScript = ''
56+
testScript = '' # python
5757
machine.wait_for_unit("multi-user.target")
5858
machine.wait_for_unit("home-manager-testuser.service")
5959
${suite.testScript}

tests/enable-beta.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
};
99
};
1010

11-
testScript = ''
11+
testScript = '' # python
1212
machine.succeed("su - testuser -c 'zen-beta --version'")
1313
'';
1414
}

tests/pins-persistent.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
};
3030
};
3131

32-
testScript = wrapWithX11 ''
32+
testScript = wrapWithX11 '' # python
3333
machine.succeed("test -f /home/testuser/.config/zen/profiles.ini")
3434
machine.succeed("grep -q 'Name=default' /home/testuser/.config/zen/profiles.ini")
3535
machine.succeed("test -d /home/testuser/.config/zen/default")

0 commit comments

Comments
 (0)