mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
Merge pull request #229400 from Anomalocaridid/handlr-regex
handlr-regex: init at 0.8.5
This commit is contained in:
commit
e54d8ed323
|
@ -1067,6 +1067,12 @@
|
|||
githubId = 1342360;
|
||||
name = "Andrew Morgan";
|
||||
};
|
||||
anomalocaris = {
|
||||
email = "duncan@anomalocaris.xyz";
|
||||
github = "Anomalocaridid";
|
||||
githubId = 29845794;
|
||||
name = "Duncan Russell";
|
||||
};
|
||||
anpin = {
|
||||
email = "pavel@anpin.fyi";
|
||||
github = "anpin";
|
||||
|
|
38
pkgs/tools/misc/handlr-regex/default.nix
Normal file
38
pkgs/tools/misc/handlr-regex/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -32111,6 +32111,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 { };
|
||||
|
|
Loading…
Reference in a new issue