Skip to content

Commit

Permalink
✨ Added fish plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
theobori committed Nov 18, 2024
1 parent c64f662 commit 80987c1
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
12 changes: 12 additions & 0 deletions modules/home/cli/shells/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ in
name = "fzf-fish";
inherit (pkgs.fishPlugins.fzf-fish) src;
}
{
name = "bang-bang";
inherit (pkgs.${namespace}.bang-bang) src;
}
{
name = "spark";
inherit (pkgs.${namespace}.spark) src;
}
{
name = "sponge";
inherit (pkgs.fishPlugins.sponge) src;
}
];
};
};
Expand Down
26 changes: 26 additions & 0 deletions packages/bang-bang/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
lib,
fishPlugins,
fetchFromGitHub,
}:
let
inherit (fishPlugins) buildFishPlugin;
in
buildFishPlugin {
pname = "bang-bang";
version = "0-unstable-2023-07-23";

src = fetchFromGitHub {
owner = "oh-my-fish";
repo = "plugin-bang-bang";
rev = "ec991b80ba7d4dda7a962167b036efc5c2d79419";
hash = "sha256-oPPCtFN2DPuM//c48SXb4TrFRjJtccg0YPXcAo0Lxq0=";
};

meta = {
description = "Bash style history substitution for Oh My Fish";
homepage = "https://github.com/oh-my-fish/plugin-bang-bang";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ theobori ];
};
}
28 changes: 28 additions & 0 deletions packages/spark/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
lib,
fishPlugins,
fetchFromGitHub,
}:
let
inherit (fishPlugins) buildFishPlugin;

self = buildFishPlugin {
pname = "spark";
version = "1.2.0";

src = fetchFromGitHub {
owner = "jorgebucaran";
repo = "spark.fish";
rev = "refs/tags/${self.version}";
hash = "sha256-AIFj7lz+QnqXGMBCfLucVwoBR3dcT0sLNPrQxA5qTuU=";
};

meta = {
description = "Sparklines for Fish";
homepage = "https://github.com/jorgebucaran/spark.fish";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ theobori ];
};
};
in
self

0 comments on commit 80987c1

Please sign in to comment.