python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / tools / argc / default.nix
blob5007428ab4635e5611d1930d5f20280cc9b0d647
1 { lib, rustPlatform, fetchFromGitHub, installShellFiles }:
3 rustPlatform.buildRustPackage rec {
4   pname = "argc";
5   version = "0.12.0";
7   src = fetchFromGitHub {
8     owner = "sigoden";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-Y6qXxnjep9AF3aAW6EZNx4dghMH3BSw8ExpNhTVH1QI=";
12   };
14   cargoSha256 = "sha256-Wr+sUtxxdmY6l+sMAcQGR3Zmqvj8qybC74o9ipkwTMk=";
16   nativeBuildInputs = [ installShellFiles ];
18   postInstall = ''
19     installShellCompletion completions/argc.{bash,zsh}
20   '';
22   meta = with lib; {
23     description = "A tool to handle sh/bash cli parameters";
24     homepage = "https://github.com/sigoden/argc";
25     license = with licenses; [ mit /* or */ asl20 ];
26     maintainers = with maintainers; [ figsoda ];
27   };