biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / argc / default.nix
blob89ee93b1c5d866f2b823908f6a6d2b666fd7ee46
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , installShellFiles
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "argc";
9   version = "1.14.0";
11   src = fetchFromGitHub {
12     owner = "sigoden";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-Li/K5/SLG6JuoRJDz2DQoj1Oi9LQgZWHNvtZ1HVbj88=";
16   };
18   cargoHash = "sha256-D1T9FWTvwKtAYoqFlR2OmLRLGWhPJ9D8J7lq/QKcBoM=";
20   nativeBuildInputs = [ installShellFiles ];
22   postInstall = ''
23     installShellCompletion --cmd argc \
24       --bash <($out/bin/argc --argc-completions bash) \
25       --fish <($out/bin/argc --argc-completions fish) \
26       --zsh <($out/bin/argc --argc-completions zsh)
27   '';
29   meta = with lib; {
30     description = "A command-line options, arguments and sub-commands parser for bash";
31     mainProgram = "argc";
32     homepage = "https://github.com/sigoden/argc";
33     changelog = "https://github.com/sigoden/argc/releases/tag/v${version}";
34     license = with licenses; [ mit /* or */ asl20 ];
35     maintainers = with maintainers; [ figsoda ];
36   };