2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, wakatime
|
|
|
|
, buildFishPlugin
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildFishPlugin rec {
|
|
|
|
pname = "wakatime-fish";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.0.6";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ik11235";
|
|
|
|
repo = "wakatime.fish";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Hsr69n4fCvPc64NztgaBZQuR0znkzlL8Uotw9Jf2S1o=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A fish plugin for wakatime";
|
|
|
|
homepage = "https://github.com/ik11235/wakatime.fish";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ocfox ];
|
|
|
|
};
|
|
|
|
}
|