1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/shells/fish/plugins/tide.nix
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00

29 lines
869 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 = "6.1.1";
src = fetchFromGitHub {
owner = "IlanCosman";
repo = "tide";
rev = "v${version}";
hash = "sha256-ZyEk/WoxdX5Fr2kXRERQS1U1QHH3oVSyBQvlwYnEYyc=";
};
#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 = "Ultimate Fish prompt";
homepage = "https://github.com/IlanCosman/tide";
license = licenses.mit;
maintainers = [ maintainers.jocelynthode ];
};
}