at 23.05-pre 28 lines 743 B view raw
1{ lib, rustPlatform, fetchFromGitHub, installShellFiles }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "argc"; 5 version = "0.12.0"; 6 7 src = fetchFromGitHub { 8 owner = "sigoden"; 9 repo = pname; 10 rev = "v${version}"; 11 sha256 = "sha256-Y6qXxnjep9AF3aAW6EZNx4dghMH3BSw8ExpNhTVH1QI="; 12 }; 13 14 cargoSha256 = "sha256-Wr+sUtxxdmY6l+sMAcQGR3Zmqvj8qybC74o9ipkwTMk="; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 postInstall = '' 19 installShellCompletion completions/argc.{bash,zsh} 20 ''; 21 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 }; 28}