Skip to content

Commit

Permalink
wezterm: add unstableGitUpdater as passthru.updateScript
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jan 4, 2025
1 parent 8cb0cd7 commit 22295e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/applications/terminal-emulators/wezterm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
runCommand,
vulkan-loader,
fetchpatch2,
unstableGitUpdater,
}:

rustPlatform.buildRustPackage rec {
Expand All @@ -33,7 +34,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "wez";
repo = "wezterm";
rev = version;
rev = "5046fc225992db6ba2ef8812743fadfdfe4b184a";
fetchSubmodules = true;
hash = "sha256-Az+HlnK/lRJpUSGm5UKyma1l2PaBKNCGFiaYnLECMX8=";
};
Expand Down Expand Up @@ -181,6 +182,11 @@ rustPlatform.buildRustPackage rec {
# the test is commented out in nixos/tests/terminal-emulators.nix
#terminal-emulators = nixosTests.terminal-emulators.wezterm;
};

# upstream tags are composed with timestamp+commit, e.g.:
# 20240203-110809-5046fc22
# doesn't make much sense if we are following unstable
updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
};

meta = with lib; {
Expand Down

0 comments on commit 22295e9

Please sign in to comment.