handlr-regex: 0.11.2 -> 0.12.0
This commit is contained in:
parent
d5afc0d747
commit
155589d54e
@ -6,20 +6,21 @@
|
|||||||
libiconv,
|
libiconv,
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
|
stdenv,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "handlr-regex";
|
pname = "handlr-regex";
|
||||||
version = "0.11.2";
|
version = "0.12.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Anomalocaridid";
|
owner = "Anomalocaridid";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-xYt+pntqfq1RwaLAoTIH6zaJZWgyl58I/2xWCWe+bBs=";
|
hash = "sha256-xjrETTBHqekdPn2NwpGVoRoU8mf0F4jZN2yt0k8ypRA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-w5eZm+wHx4aU6zsNZhg8mehDSzpd6k6PpV/V7tzukIA=";
|
cargoHash = "sha256-V/daNs2vk2N6N5eUq1haxxuNyGMBLLBSmBx0JozaN5A=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
installShellFiles
|
installShellFiles
|
||||||
@ -32,13 +33,13 @@ rustPlatform.buildRustPackage rec {
|
|||||||
export HOME=$TEMPDIR
|
export HOME=$TEMPDIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
installShellCompletion \
|
installShellCompletion --cmd handlr \
|
||||||
--zsh assets/completions/_handlr \
|
--zsh <(COMPLETE=zsh $out/bin/handlr) \
|
||||||
--bash assets/completions/handlr \
|
--bash <(COMPLETE=bash $out/bin/handlr) \
|
||||||
--fish assets/completions/handlr.fish
|
--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 { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
Loading…
Reference in New Issue
Block a user