Files
nixpkgs/pkgs/shells/fish/plugins/wakatime-fish.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

32 lines
767 B
Nix

{
lib,
wakatime-cli,
buildFishPlugin,
fetchFromGitHub,
}:
buildFishPlugin rec {
pname = "wakatime-fish";
version = "0.0.6";
src = fetchFromGitHub {
owner = "ik11235";
repo = "wakatime.fish";
rev = "v${version}";
hash = "sha256-Hsr69n4fCvPc64NztgaBZQuR0znkzlL8Uotw9Jf2S1o=";
};
preFixup = ''
substituteInPlace $out/share/fish/vendor_conf.d/wakatime.fish \
--replace-fail "if type -p wakatime" "if type -p ${lib.getExe wakatime-cli}" \
--replace-fail "(type -p wakatime)" "${lib.getExe wakatime-cli}"
'';
meta = with lib; {
description = "Fish plugin for wakatime";
homepage = "https://github.com/ik11235/wakatime.fish";
license = licenses.mit;
maintainers = with maintainers; [ ocfox ];
};
}