mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
31 lines
761 B
Nix
31 lines
761 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 ];
|
|
};
|
|
}
|