about summary refs log tree commit diff
path: root/pkgs/by-name/ha
diff options
context:
space:
mode:
authorAnomalocaridid <29845794+Anomalocaridid@users.noreply.github.com>2023-12-03 20:09:31 -0500
committerAnomalocaridid <29845794+Anomalocaridid@users.noreply.github.com>2023-12-03 20:10:12 -0500
commitdb4ce465edd23222973fff494b0cc3a522d7a3dc (patch)
tree53c36d2c3faaf7f2f5e7f887b52bf2d366695116 /pkgs/by-name/ha
parentcebdb401b1176d3d9715d7fd0a58d2fc80a6bf13 (diff)
downloadnixlib-db4ce465edd23222973fff494b0cc3a522d7a3dc.tar
nixlib-db4ce465edd23222973fff494b0cc3a522d7a3dc.tar.gz
nixlib-db4ce465edd23222973fff494b0cc3a522d7a3dc.tar.bz2
nixlib-db4ce465edd23222973fff494b0cc3a522d7a3dc.tar.lz
nixlib-db4ce465edd23222973fff494b0cc3a522d7a3dc.tar.xz
nixlib-db4ce465edd23222973fff494b0cc3a522d7a3dc.tar.zst
nixlib-db4ce465edd23222973fff494b0cc3a522d7a3dc.zip
handlr-regex: migrate to pkgs/by-name
Diffstat (limited to 'pkgs/by-name/ha')
-rw-r--r--pkgs/by-name/ha/handlr-regex/package.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/by-name/ha/handlr-regex/package.nix b/pkgs/by-name/ha/handlr-regex/package.nix
new file mode 100644
index 000000000000..7b6b886524cf
--- /dev/null
+++ b/pkgs/by-name/ha/handlr-regex/package.nix
@@ -0,0 +1,39 @@
+{ lib, rustPlatform, fetchFromGitHub, shared-mime-info, libiconv, installShellFiles }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "handlr-regex";
+  version = "0.8.5";
+
+  src = fetchFromGitHub {
+    owner = "Anomalocaridid";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-X0j62Ntu/ouBVm09iKxU3pps8mbL5V5gA65Maa4b0AY=";
+  };
+
+  cargoSha256 = "sha256-byR7CM876z5tAXmbcUfI0CnJrc/D6CxfjBJhuJMSFmg=";
+
+  nativeBuildInputs = [ installShellFiles shared-mime-info ];
+  buildInputs = [ libiconv ];
+
+  preCheck = ''
+    export HOME=$TEMPDIR
+  '';
+
+  postInstall = ''
+    installShellCompletion \
+      --zsh assets/completions/_handlr \
+      --bash assets/completions/handlr \
+      --fish assets/completions/handlr.fish
+
+    installManPage assets/manual/man1/*
+  '';
+
+  meta = with lib; {
+    description = "Fork of handlr with support for regex";
+    homepage = "https://github.com/Anomalocaridid/handlr-regex";
+    license = licenses.mit;
+    maintainers = with maintainers; [ anomalocaris ];
+    mainProgram = "handlr";
+  };
+}