Skip to content

Commit

Permalink
handlr-regex: 0.11.2 -> 0.12.0 (#348860)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds authored Oct 21, 2024
2 parents 51eecb3 + 155589d commit 9a9ee40
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions pkgs/by-name/ha/handlr-regex/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@
libiconv,
installShellFiles,
nix-update-script,
stdenv,
}:

rustPlatform.buildRustPackage rec {
pname = "handlr-regex";
version = "0.11.2";
version = "0.12.0";

src = fetchFromGitHub {
owner = "Anomalocaridid";
repo = pname;
rev = "v${version}";
hash = "sha256-xYt+pntqfq1RwaLAoTIH6zaJZWgyl58I/2xWCWe+bBs=";
hash = "sha256-xjrETTBHqekdPn2NwpGVoRoU8mf0F4jZN2yt0k8ypRA=";
};

cargoHash = "sha256-w5eZm+wHx4aU6zsNZhg8mehDSzpd6k6PpV/V7tzukIA=";
cargoHash = "sha256-V/daNs2vk2N6N5eUq1haxxuNyGMBLLBSmBx0JozaN5A=";

nativeBuildInputs = [
installShellFiles
Expand All @@ -32,13 +33,13 @@ rustPlatform.buildRustPackage rec {
export HOME=$TEMPDIR
'';

postInstall = ''
installShellCompletion \
--zsh assets/completions/_handlr \
--bash assets/completions/handlr \
--fish assets/completions/handlr.fish
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 assets/manual/man1/*
installManPage target/release-tmp/build/handlr-regex-*/out/manual/man1/*
'';

passthru.updateScript = nix-update-script { };
Expand Down

0 comments on commit 9a9ee40

Please sign in to comment.