Files
nixpkgs/pkgs/by-name/ha/handlr-regex/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

55 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
shared-mime-info,
libiconv,
installShellFiles,
nix-update-script,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "handlr-regex";
version = "0.13.0";
src = fetchFromGitHub {
owner = "Anomalocaridid";
repo = "handlr-regex";
rev = "v${version}";
hash = "sha256-7psjlu0qyoZYTVwq2JYJJkB76ejlmMtmstDw+liMcj8=";
};
cargoHash = "sha256-a91WaIFBS9Rh4T/dwpLQJMoE604Tj0mVN38RKmNcZU0=";
nativeBuildInputs = [
installShellFiles
shared-mime-info
];
buildInputs = [ libiconv ];
preCheck = ''
export HOME=$TEMPDIR
'';
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd handlr \
--zsh <(COMPLETE=zsh $out/bin/handlr) \
--bash <(COMPLETE=bash $out/bin/handlr) \
--fish <(COMPLETE=fish $out/bin/handlr)
installManPage target/release-tmp/build/handlr-regex-*/out/manual/man1/*
'';
passthru.updateScript = nix-update-script { };
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";
};
}