aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2026-08-26 08:40:30 +1000
committersefidel <contact@sefidel.net>2026-08-26 08:41:01 +1000
commit04d68893751ffdc1b3789c4fde7097db8bd1db27 (patch)
treed6cea62fd43440ae1a657a25d967483bf235755d
parentb145e6319204cc72327c8755cf46045e3f01b530 (diff)
downloadnixpkgs-exotic-main.zip
hexapoda: init at 1.0.0HEADmain
-rw-r--r--pkgs/default.nix1
-rw-r--r--pkgs/hexapoda.nix31
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 1688645..66cd3ae 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -1,5 +1,6 @@
{ pkgs, ... }: let
callPackage = pkg: pkgs.callPackage pkg;
in {
+ hexapoda = callPackage ./hexapoda.nix { };
rz-pm = callPackage ./rz-pm.nix { };
}
diff --git a/pkgs/hexapoda.nix b/pkgs/hexapoda.nix
new file mode 100644
index 0000000..c7f5924
--- /dev/null
+++ b/pkgs/hexapoda.nix
@@ -0,0 +1,31 @@
+{ lib, fetchFromGitHub, rustPlatform, installShellFiles }:
+
+rustPlatform.buildRustPackage(finalAttrs: {
+ pname = "hexapoda";
+ version = "1.0.0";
+
+ src = fetchFromGitHub {
+ owner = "simonomi";
+ repo = "hexapoda";
+ tag = "v${finalAttrs.version}";
+ hash = "sha256-UL9y7ofI9VRGbmKG2tX2Ax/So1OhemznUFPR9LOA6Os=";
+ };
+
+ cargoHash = "sha256-pfzziyjlrMFM65+ZusqXpp+utVHHV0pWE2lCZwHYiBM=";
+
+ nativeBuildInputs = [ installShellFiles ];
+
+ postInstall = ''
+ installManPage hexapoda.1
+
+ installShellCompletion --cmd hexapoda \
+ --bash hexapoda.bash\
+ --fish hexapoda.fish\
+ --zsh _hexapoda\
+ '';
+
+ env = {
+ HEXAPODA_COMPLETIONS = ".";
+ HEXAPODA_MANPAGE = ".";
+ };
+})