Merge pull request #201646 from jocelynthode/add-tide

This commit is contained in:
Sandro 2022-11-20 07:17:06 +01:00 committed by GitHub
commit af75410c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -35,4 +35,5 @@ lib.makeScope newScope (self: with self; {
sponge = callPackage ./sponge.nix { };
tide = callPackage ./tide.nix { };
})

View File

@ -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 ];
};
}