Skip to content

Commit

Permalink
fishPlugins.nvm: init at 2.2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
dudeofawesome committed Dec 5, 2024
1 parent dfe71a0 commit 6a42211
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/shells/fish/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ lib.makeScope newScope (self: with self; {

node-version = callPackage ./node-version.nix { };

nvm = callPackage ./nvm.nix { };

pisces = callPackage ./pisces.nix { };

plugin-git = callPackage ./plugin-git.nix { };
Expand Down
35 changes: 35 additions & 0 deletions pkgs/shells/fish/plugins/nvm.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
lib,
buildFishPlugin,
fetchFromGitHub,
unstableGitUpdater,
fishtape_3,
}:

buildFishPlugin rec {
pname = "nvm";
version = "2.2.16";

src = fetchFromGitHub {
owner = "jorgebucaran";
repo = "${pname}.fish";
rev = "refs/tags/${version}";
hash = "sha256-GTEkCm+OtxMS3zJI5gnFvvObkrpepq1349/LcEPQRDo=";
};

meta = {
inherit (src.meta) homepage;
description = "Node.js version manager crafted just for Fish";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dudeofawesome ];
};

passthru = {
updateScript = unstableGitUpdater { };
};

checkPlugins = [ fishtape_3 ];
checkPhase = ''
fishtape tests/*.fish
'';
}

0 comments on commit 6a42211

Please sign in to comment.