Commit 64dc246
Changed files (14)
pkgs/helix-plugins/build-helix-plugin.nix
@@ -1,54 +0,0 @@
-{
- lib,
- stdenv,
- steel,
- cargo,
- rustc,
- rustPlatform,
-}: {
- pname,
- version,
- src,
- name ? "helixplugin-${pname}-${version}",
- ...
-} @ attrs:
-stdenv.mkDerivation (finalAttrs:
- attrs
- // {
- inherit name;
-
- nativeBuildInputs =
- [steel]
- ++ (lib.optionals (lib.hasAttr "cargoDeps" attrs) [
- cargo
- rustc
- rustPlatform.cargoSetupHook
- ]);
-
- buildPhase = ''
- runHook preBuild
-
- export STEEL_HOME=$TMPDIR/target_steel
- mkdir -p $STEEL_HOME
- forge install
-
- mv $STEEL_HOME ./
-
- runHook postBuild
- '';
-
- installPhase = ''
- runHook preInstall
-
- mkdir -p $out/cogs
-
- if [ -z "$(find ./target_steel/native -maxdepth 0 -empty)" ]; then
- cp -r ./target_steel/native $out/
- fi
-
- plugin_name=$(cd ./target_steel/cogs && ls -1 | head -n1)
- ln -s "${finalAttrs.src}" "$out/cogs/$plugin_name"
-
- runHook postInstall
- '';
- })
pkgs/helix-plugins/default.nix
@@ -2,35 +2,53 @@
lib,
selfLib,
newScope,
+ callPackage,
+ fetchFromCodeberg,
}:
lib.makeScope newScope (
self:
- with self; {
- buildHelixPlugin = callPackage ./build-helix-plugin.nix {};
+ let
+ helixPluginsNix = fetchFromCodeberg {
+ owner = "maxschipper";
+ repo = "helix-plugins-nix";
+ rev = "629a6b9489dbab75b8bff3daaf4843f66f97e35c";
+ hash = "sha256-Wq62h4qPsABKb0pJJDoXJvxVWSuBsShy3r4FioKqi2Y=";
+ };
- fcitx-focus = callPackage ./fcitx-focus.nix {};
+ upstream = callPackage "${helixPluginsNix}/pkgs/default.nix" { };
- file-tree = callPackage ./file-tree.nix {};
- file-tree-hx = selfLib.renamePackage "helixPlugins.file-tree-hx" "helixPlugins.file-tree" self.file-tree;
+ deprecate =
+ name: drv:
+ selfLib.deprecatePackage name
+ "use the package of the same name from helix-plugins-nix (https://codeberg.org/maxschipper/helix-plugins-nix) instead"
+ drv;
+ in
+ {
+ fcitx-focus = callPackage ./fcitx-focus.nix {
+ buildHelixPluginWithNative = upstream.buildHelixPluginWithNative;
+ };
- forest = callPackage ./forest.nix {};
+ file-tree = deprecate "helixPlugins.file-tree" upstream.file-tree-hx;
+ file-tree-hx = deprecate "helixPlugins.file-tree-hx" upstream.file-tree-hx;
- glyph = callPackage ./glyph.nix {};
+ forest = deprecate "helixPlugins.forest" upstream.forest;
- helix-file-watcher = callPackage ./helix-file-watcher.nix {};
+ glyph = deprecate "helixPlugins.glyph" upstream.glyph;
- notify = callPackage ./notify.nix {};
+ helix-file-watcher = deprecate "helixPlugins.helix-file-watcher" upstream.helix-file-watcher;
- oil = callPackage ./oil.nix {};
+ notify = deprecate "helixPlugins.notify" upstream.notify;
- scooter = callPackage ./scooter.nix {};
- scooter-hx = selfLib.renamePackage "helixPlugins.scooter-hx" "helixPlugins.scooter" self.scooter;
+ oil = deprecate "helixPlugins.oil" upstream.oil;
- smith = callPackage ./smith.nix {};
+ scooter = deprecate "helixPlugins.scooter" upstream.scooter;
+ scooter-hx = deprecate "helixPlugins.scooter-hx" upstream.scooter;
- trail = callPackage ./trail.nix {};
+ smith = callPackage ./smith.nix { buildHelixPlugin = upstream.buildHelixPlugin; };
- wakatime = callPackage ./wakatime.nix {};
- wakatime-hx = selfLib.renamePackage "helixPlugins.wakatime-hx" "helixPlugins.wakatime" self.wakatime;
- }
+ trail = deprecate "helixPlugins.trail" upstream.trail;
+
+ wakatime = deprecate "helixPlugins.wakatime" upstream.wakatime;
+ wakatime-hx = deprecate "helixPlugins.wakatime-hx" upstream.wakatime;
+ }
)
pkgs/helix-plugins/fcitx-focus.nix
@@ -1,10 +1,9 @@
{
lib,
- buildHelixPlugin,
+ buildHelixPluginWithNative,
fetchFromGitHub,
- rustPlatform,
}:
-buildHelixPlugin rec {
+buildHelixPluginWithNative {
pname = "helix-fcitx-focus";
version = "0-unstable-2026-05-06";
@@ -15,10 +14,7 @@ buildHelixPlugin rec {
hash = "sha256-VmJV2uy4uiTJSzUszaTJjkcmQI8fc1i6HPk+phT/36Q=";
};
- cargoDeps = rustPlatform.fetchCargoVendor {
- inherit src;
- hash = "sha256-LVNwdhn2h50un3r391JwPJiPhlTmRPl863rqB595RKo=";
- };
+ cargoHash = "sha256-LVNwdhn2h50un3r391JwPJiPhlTmRPl863rqB595RKo=";
meta = {
description = "Steel native module for Helix fcitx5 focus and mode switching";
pkgs/helix-plugins/file-tree.nix
@@ -1,22 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
-}:
-buildHelixPlugin {
- pname = "file-tree.hx";
- version = "0-unstable-2026-05-01";
-
- src = fetchFromGitHub {
- owner = "mattwparas";
- repo = "file-tree.hx";
- rev = "e84e92f6ab62d4436768d70639ca0ba7ec72c073";
- hash = "sha256-AHvL0wQJqtaPDJpR+XByFWI/q9NNZfNdpMt4XXC4NMY=";
- };
-
- meta = {
- description = "File tree for helix, using Steel.";
- homepage = "https://github.com/mattwparas/file-tree.hx";
- # license = lib.licenses.unfree; # Unclear licensing status. Marked as unfree.
- };
-}
pkgs/helix-plugins/forest.nix
@@ -1,23 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
- ...
-}:
-buildHelixPlugin {
- pname = "forest.hx";
- version = "0-unstable-2026-07-13";
-
- src = fetchFromGitHub {
- owner = "Ra77a3l3-jar";
- repo = "forest.hx";
- rev = "76f539932e78f3f7c6627379c9ca46dc8482128f";
- hash = "sha256-kQox4neRkJg5te6bbozur3/TW4m7u3VrPrZI3jE985k=";
- };
-
- meta = {
- description = "A file explorer tree for Helix";
- homepage = "https://github.com/Ra77a3l3-jar/forest.hx";
- license = lib.licenses.mit;
- };
-}
pkgs/helix-plugins/glyph.nix
@@ -1,23 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
- ...
-}:
-buildHelixPlugin {
- pname = "glyph.hx";
- version = "0-unstable-2026-07-06";
-
- src = fetchFromGitHub {
- owner = "Ra77a3l3-jar";
- repo = "glyph.hx";
- rev = "1386654fb65584dc32cf394b0ab2110ade483262";
- hash = "sha256-BctBmnV5lrOXKsI89v2d0RJrvBwhIyk/jSl5rg6ruO8=";
- };
-
- meta = {
- description = "Shared icon library for Helix plugins";
- homepage = "https://github.com/Ra77a3l3-jar/glyph.hx";
- license = lib.licenses.mit;
- };
-}
pkgs/helix-plugins/helix-file-watcher.nix
@@ -1,28 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
- rustPlatform,
-}:
-buildHelixPlugin rec {
- pname = "helix-file-watcher";
- version = "0-unstable-2026-05-21";
-
- src = fetchFromGitHub {
- owner = "mattwparas";
- repo = "helix-file-watcher";
- rev = "e118b7552ec7697c560a24b48880c92d6aa4476e";
- hash = "sha256-AvUihtnJtVZ6cLJJrNzhTmt/ZT1lZzprCRbuAfbzRc0=";
- };
-
- cargoDeps = rustPlatform.fetchCargoVendor {
- inherit src;
- hash = "sha256-RhxKQSydcY48/aWZGPbJe6pFrKptynMV35BQSD16tXo=";
- };
-
- meta = {
- description = "Helix file watcher plugin";
- homepage = "https://github.com/mattwparas/helix-file-watcher";
- # license = lib.licenses.unfree; # Unclear licensing status. Marked as unfree.
- };
-}
pkgs/helix-plugins/notify.nix
@@ -1,23 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
- ...
-}:
-buildHelixPlugin {
- pname = "notify.hx";
- version = "0-unstable-2026-05-30";
-
- src = fetchFromGitHub {
- owner = "chuwy";
- repo = "notify.hx";
- rev = "0a328073e6d3e5041346374ae747c275ab8ce746";
- hash = "sha256-shKUVnJw2j0yYO+mTHsKie+d1VrJGWDTRul+PTpqlhs=";
- };
-
- meta = {
- description = "A notification engine for Helix";
- homepage = "https://github.com/chuwy/notify.hx";
- license = lib.licenses.mit;
- };
-}
pkgs/helix-plugins/oil.nix
@@ -1,23 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
- ...
-}:
-buildHelixPlugin {
- pname = "oil.hx";
- version = "0-unstable-2026-06-21";
-
- src = fetchFromGitHub {
- owner = "Ra77a3l3-jar";
- repo = "oil.hx";
- rev = "678a24cca321c84252f8a0812cbb6018f56ab72d";
- hash = "sha256-xZwDENGeLTH0WMa7/g8BxmW3xibGrCMpBRnwkfDm5QI=";
- };
-
- meta = {
- description = "File Manager in a buffer for Helix editor";
- homepage = "https://github.com/Ra77a3l3-jar/oil.hx";
- license = lib.licenses.mit;
- };
-}
pkgs/helix-plugins/scooter.nix
@@ -1,28 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
- rustPlatform,
-}:
-buildHelixPlugin rec {
- pname = "scooter.hx";
- version = "0-unstable-2026-06-22";
-
- src = fetchFromGitHub {
- owner = "thomasschafer";
- repo = "scooter.hx";
- rev = "49cac91f60b609a70b6f85f80c461177b1ba57e5";
- hash = "sha256-iNcnD/3J4fPivwKvLWBNcor8qvzo0EeVB3ri4ZHL3Mk=";
- };
-
- cargoDeps = rustPlatform.fetchCargoVendor {
- inherit src;
- hash = "sha256-LrTjw3iZg33C/u+tBIMeMtq8Y6SCX7+77gc7dLht+go=";
- };
-
- meta = {
- description = "Interactive find-and-replace Helix plugin";
- homepage = "https://github.com/thomasschafer/scooter.hx";
- license = lib.licenses.mit;
- };
-}
pkgs/helix-plugins/smith.nix
@@ -2,7 +2,6 @@
lib,
buildHelixPlugin,
fetchFromGitHub,
- ...
}:
buildHelixPlugin {
pname = "smith.hx";
pkgs/helix-plugins/trail.nix
@@ -1,23 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
- ...
-}:
-buildHelixPlugin {
- pname = "trail.hx";
- version = "0-unstable-2026-07-06";
-
- src = fetchFromGitHub {
- owner = "Ra77a3l3-jar";
- repo = "trail.hx";
- rev = "9e6ebd8d57836c21a871eb25be40e8266d468035";
- hash = "sha256-uhCA7k5ntEDY656hwTGJXpKP/RmNQDsFkUsARQXd5rw=";
- };
-
- meta = {
- description = "A recent-project picker for Helix";
- homepage = "https://github.com/Ra77a3l3-jar/trail.hx";
- license = lib.licenses.mit;
- };
-}
pkgs/helix-plugins/wakatime.nix
@@ -1,22 +0,0 @@
-{
- lib,
- buildHelixPlugin,
- fetchFromGitHub,
-}:
-buildHelixPlugin {
- pname = "wakatime.hx";
- version = "0-unstable-2026-05-01";
-
- src = fetchFromGitHub {
- owner = "Xerxes-2";
- repo = "wakatime.hx";
- rev = "d38516798494fbd6a2341a6b57232a26b0d9f172";
- hash = "sha256-qDvXDQFzLXGy8RHc9weL6d+t9WkxUtC2LPgvJGA/saA=";
- };
-
- meta = {
- description = "Wakatime plugin for Helix Steel";
- homepage = "https://github.com/Xerxes-2/wakatime.hx";
- license = lib.licenses.mit;
- };
-}
README.md
@@ -29,15 +29,6 @@
| Path | Name | Version | License | Description |
| --- | --- | --- | --- | --- |
| `helixPlugins.fcitx-focus` | [helix-fcitx-focus](https://github.com/mtul0729/helix-fcitx-focus) | `0-unstable-2026-05-06` | [MIT](https://spdx.org/licenses/MIT.html) | Steel native module for Helix fcitx5 focus and mode switching |
-| `helixPlugins.file-tree` | [file-tree.hx](https://github.com/mattwparas/file-tree.hx) | `0-unstable-2026-05-01` | Not specified | File tree for helix, using Steel. |
-| `helixPlugins.forest` | [forest.hx](https://github.com/Ra77a3l3-jar/forest.hx) | `0-unstable-2026-07-13` | [MIT](https://spdx.org/licenses/MIT.html) | A file explorer tree for Helix |
-| `helixPlugins.glyph` | [glyph.hx](https://github.com/Ra77a3l3-jar/glyph.hx) | `0-unstable-2026-07-06` | [MIT](https://spdx.org/licenses/MIT.html) | Shared icon library for Helix plugins |
-| `helixPlugins.helix-file-watcher` | [helix-file-watcher](https://github.com/mattwparas/helix-file-watcher) | `0-unstable-2026-05-21` | Not specified | Helix file watcher plugin |
-| `helixPlugins.notify` | [notify.hx](https://github.com/chuwy/notify.hx) | `0-unstable-2026-05-30` | [MIT](https://spdx.org/licenses/MIT.html) | A notification engine for Helix |
-| `helixPlugins.oil` | [oil.hx](https://github.com/Ra77a3l3-jar/oil.hx) | `0-unstable-2026-06-21` | [MIT](https://spdx.org/licenses/MIT.html) | File Manager in a buffer for Helix editor |
-| `helixPlugins.scooter` | [scooter.hx](https://github.com/thomasschafer/scooter.hx) | `0-unstable-2026-06-22` | [MIT](https://spdx.org/licenses/MIT.html) | Interactive find-and-replace Helix plugin |
| `helixPlugins.smith` | [smith.hx](https://github.com/kn66/smith.hx) | `0-unstable-2026-07-12` | [MIT](https://spdx.org/licenses/MIT.html) | A declarative Helix plugin manager |
-| `helixPlugins.trail` | [trail.hx](https://github.com/Ra77a3l3-jar/trail.hx) | `0-unstable-2026-07-06` | [MIT](https://spdx.org/licenses/MIT.html) | A recent-project picker for Helix |
-| `helixPlugins.wakatime` | [wakatime.hx](https://github.com/Xerxes-2/wakatime.hx) | `0-unstable-2026-05-01` | [MIT](https://spdx.org/licenses/MIT.html) | Wakatime plugin for Helix Steel |
<!-- END_PACKAGE_TABLE -->