Merge pull request #233139 from figsoda/argc

argc: 1.0.0 -> 1.1.0

authored by

Mario Rodas and committed by
GitHub
fcebc891 28c184e5

+15 -5
+15 -5
pkgs/development/tools/argc/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub, installShellFiles }: 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , installShellFiles 5 + , rust 6 + , stdenv 7 + }: 2 8 3 9 rustPlatform.buildRustPackage rec { 4 10 pname = "argc"; 5 - version = "1.0.0"; 11 + version = "1.1.0"; 6 12 7 13 src = fetchFromGitHub { 8 14 owner = "sigoden"; 9 15 repo = pname; 10 16 rev = "v${version}"; 11 - hash = "sha256-lZtAhsEfMzj8Irl7LQPzjBNiKKy8091p2XoB5wSPhKM="; 17 + hash = "sha256-db75OoFmsR03lK99vGg8+fHJENOyoDFo+uqQJNYmI9M="; 12 18 }; 13 19 14 - cargoHash = "sha256-L0FX4RuJ5n76CCWVpGQryX7usXGBN55W9+y83s9JJug="; 20 + cargoHash = "sha256-6TC4RWDcg4el+jkq8Jal0k+2sdNsjMkMYqP/b9wP5mU="; 15 21 16 22 nativeBuildInputs = [ installShellFiles ]; 17 23 24 + preCheck = '' 25 + export PATH=target/${rust.toRustTarget stdenv.hostPlatform}/release:$PATH 26 + ''; 27 + 18 28 postInstall = '' 19 29 installShellCompletion --cmd argc \ 20 30 --bash <($out/bin/argc --argc-completions bash) \ ··· 23 33 ''; 24 34 25 35 meta = with lib; { 26 - description = "A tool to handle sh/bash cli parameters"; 36 + description = "A command-line options, arguments and sub-commands parser for bash"; 27 37 homepage = "https://github.com/sigoden/argc"; 28 38 changelog = "https://github.com/sigoden/argc/releases/tag/v${version}"; 29 39 license = with licenses; [ mit /* or */ asl20 ];