diff --git a/pkgs/tools/misc/handlr-regex/default.nix b/pkgs/tools/misc/handlr-regex/default.nix new file mode 100644 index 00000000000..5a52f63f0cc --- /dev/null +++ b/pkgs/tools/misc/handlr-regex/default.nix @@ -0,0 +1,38 @@ +{ lib, stdenv, 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fc7d6e1c42b..bf00f371dfb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31922,6 +31922,8 @@ with pkgs; handlr = callPackage ../tools/misc/handlr { }; + handlr-regex = callPackage ../tools/misc/handlr-regex { }; + jftui = callPackage ../applications/video/jftui { }; lime = callPackage ../development/libraries/lime { };