c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
30 lines
741 B
Nix
30 lines
741 B
Nix
{ lib
|
|
, wakatime
|
|
, buildFishPlugin
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildFishPlugin rec {
|
|
pname = "wakatime-fish";
|
|
version = "0.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ik11235";
|
|
repo = "wakatime.fish";
|
|
rev = "v${version}";
|
|
hash = "sha256-t0b8jvkNU7agF0A8YkwQ57qGGqcYJF7l9eNr12j2ZQ0=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|