Merge pull request #295018 from Kranzes/cargo-wizard

cargo-wizard: init at 0.2.1

authored by Ilan Joselevich and committed by GitHub 3e062ac4 91a2fbbc

+32
+32
pkgs/by-name/ca/cargo-wizard/package.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , stdenv 5 + }: 6 + 7 + rustPlatform.buildRustPackage rec { 8 + pname = "cargo-wizard"; 9 + version = "0.2.1"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "kobzol"; 13 + repo = "cargo-wizard"; 14 + rev = "v${version}"; 15 + hash = "sha256-b8PFJphnTTzW0+f6p59CvQeZMnK6Szp0l/666guDbuc="; 16 + }; 17 + 18 + cargoHash = "sha256-qBqFnvmGKZQv0vWigsUKELDNqy245GqBm3Nif2hAa78="; 19 + 20 + preCheck = '' 21 + export PATH=$PATH:$PWD/target/${stdenv.hostPlatform.rust.rustcTarget}/$cargoBuildType 22 + ''; 23 + 24 + meta = with lib; { 25 + description = "Cargo subcommand for configuring Cargo profile for best performance"; 26 + homepage = "https://github.com/kobzol/cargo-wizard"; 27 + changelog = "https://github.com/kobzol/cargo-wizard/blob/${src.rev}/CHANGELOG.md"; 28 + license = licenses.mit; 29 + maintainers = with maintainers; [ kranzes ]; 30 + mainProgram = "cargo-wizard"; 31 + }; 32 + }