Merge pull request #315913 from Sigmanificient/wakatime-cli

This commit is contained in:
Sandro 2024-06-02 19:00:11 +02:00 committed by GitHub
commit 42fa9593b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View File

@ -3,11 +3,11 @@
buildGo122Module,
fetchFromGitHub,
testers,
wakatime,
wakatime-cli,
}:
buildGo122Module rec {
pname = "wakatime";
pname = "wakatime-cli";
version = "1.90.0";
src = fetchFromGitHub {
@ -43,7 +43,7 @@ buildGo122Module rec {
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
passthru.tests.version = testers.testVersion {
package = wakatime;
package = wakatime-cli;
command = "HOME=$(mktemp -d) wakatime-cli --version";
};

View File

@ -1,5 +1,5 @@
{ lib
, wakatime
, wakatime-cli
, buildFishPlugin
, fetchFromGitHub
}:
@ -17,8 +17,8 @@ buildFishPlugin rec {
preFixup = ''
substituteInPlace $out/share/fish/vendor_conf.d/wakatime.fish \
--replace "if type -p wakatime" "if type -p ${lib.getExe wakatime}" \
--replace "(type -p wakatime)" "${lib.getExe wakatime}"
--replace-fail "if type -p wakatime-cli" "if type -p ${lib.getExe wakatime-cli}" \
--replace-fail "(type -p wakatime-cli)" "${lib.getExe wakatime-cli}"
'';
meta = with lib; {

View File

@ -1354,6 +1354,7 @@ mapAliases ({
volatility = throw "'volatility' has been removed, as it was broken and unmaintained"; # Added 2023-12-10
### W ###
wakatime = wakatime-cli; # 2024-05-30
waybar-hyprland = throw "waybar-hyprland has been removed: hyprland support is now built into waybar by default."; # Added 2023-08-21
wayfireApplications-unwrapped = throw ''
'wayfireApplications-unwrapped.wayfire' has been renamed to/replaced by 'wayfire'