depot/third_party/nixpkgs/pkgs/shells/fish/plugins/tide.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

28 lines
873 B
Nix

{ lib, buildFishPlugin, fetchFromGitHub }:
# Due to a quirk in tide breaking wrapFish, we need to add additional commands in the config.fish
# Refer to the following comment to get you setup: https://github.com/NixOS/nixpkgs/pull/201646#issuecomment-1320893716
buildFishPlugin rec {
pname = "tide";
version = "5.6.0";
src = fetchFromGitHub {
owner = "IlanCosman";
repo = "tide";
rev = "v${version}";
hash = "sha256-cCI1FDpvajt1vVPUd/WvsjX/6BJm6X1yFPjqohmo1rI=";
};
#buildFishplugin will only move the .fish files, but tide has a tide configure function
postInstall = ''
cp -R functions/tide $out/share/fish/vendor_functions.d/
'';
meta = with lib; {
description = "The ultimate Fish prompt";
homepage = "https://github.com/IlanCosman/tide";
license = licenses.mit;
maintainers = [ maintainers.jocelynthode ];
};
}