1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

fishPlugins.wakatime-fish: init at 0.0.3

This commit is contained in:
ocfox 2023-04-04 14:21:34 +08:00
parent b01f185e48
commit 32f10b45f8
No known key found for this signature in database
GPG key ID: 8C2212388306143C
2 changed files with 32 additions and 0 deletions

View file

@ -50,6 +50,8 @@ lib.makeScope newScope (self: with self; {
tide = callPackage ./tide.nix { };
wakatime-fish = callPackage ./wakatime-fish.nix { };
z = callPackage ./z.nix { };
} // lib.optionalAttrs config.allowAliases {
autopair-fish = self.autopair; # Added 2023-03-10

View file

@ -0,0 +1,30 @@
{ 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 ];
};
}