diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-20 07:17:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-20 07:17:06 +0100 |
commit | af75410c35ce5b95aaa2ec2522b25233bf788d9a (patch) | |
tree | d9bf0608f31d98c55b6f13fbe8e7397a5d7c74d0 /pkgs/shells/fish | |
parent | 2ac91152ccf8b04007c44442ef891704c153c0f3 (diff) | |
parent | c561c5493184eb74cc449c7a48ceff7a11fe2dba (diff) | |
download | nixlib-af75410c35ce5b95aaa2ec2522b25233bf788d9a.tar nixlib-af75410c35ce5b95aaa2ec2522b25233bf788d9a.tar.gz nixlib-af75410c35ce5b95aaa2ec2522b25233bf788d9a.tar.bz2 nixlib-af75410c35ce5b95aaa2ec2522b25233bf788d9a.tar.lz nixlib-af75410c35ce5b95aaa2ec2522b25233bf788d9a.tar.xz nixlib-af75410c35ce5b95aaa2ec2522b25233bf788d9a.tar.zst nixlib-af75410c35ce5b95aaa2ec2522b25233bf788d9a.zip |
Merge pull request #201646 from jocelynthode/add-tide
Diffstat (limited to 'pkgs/shells/fish')
-rw-r--r-- | pkgs/shells/fish/plugins/default.nix | 1 | ||||
-rw-r--r-- | pkgs/shells/fish/plugins/tide.nix | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/shells/fish/plugins/default.nix b/pkgs/shells/fish/plugins/default.nix index 4f620b19b0f0..1c67ff8f4b3b 100644 --- a/pkgs/shells/fish/plugins/default.nix +++ b/pkgs/shells/fish/plugins/default.nix @@ -35,4 +35,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 ]; + }; +} + |