From c561c5493184eb74cc449c7a48ceff7a11fe2dba Mon Sep 17 00:00:00 2001 From: Jocelyn Thode Date: Thu, 17 Nov 2022 16:48:22 +0100 Subject: [PATCH] fishPlugins.tide: init at 5.5.1 --- pkgs/shells/fish/plugins/default.nix | 1 + pkgs/shells/fish/plugins/tide.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/shells/fish/plugins/tide.nix diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index c67639a85a2f..bc3c39265710 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -33,4 +33,5 @@ lib.makeScope newScope (self: with self; { sponge = callPackage ./sponge.nix { }; + tide = callPackage ./tide.nix { }; }) diff --git a/pkgs/shells/fish/plugins/tide.nix b/pkgs/shells/fish/plugins/tide.nix new file mode 100644 index 000000000000..5c844212006a --- /dev/null +++ b/pkgs/shells/fish/plugins/tide.nix @@ -0,0 +1,28 @@ +{ 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.5.1"; + + src = fetchFromGitHub { + owner = "IlanCosman"; + repo = "tide"; + rev = "v${version}"; + sha256 = "sha256-vi4sYoI366FkIonXDlf/eE2Pyjq7E/kOKBrQS+LtE+M="; + }; + + #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 ]; + }; +} +