mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 11:33:31 +00:00
7ac9168c77
Diff: https://github.com/kobzol/cargo-wizard/compare/v0.2.1...v0.2.2 Changelog: https://github.com/kobzol/cargo-wizard/blob/v0.2.2/CHANGELOG.md
33 lines
863 B
Nix
33 lines
863 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-wizard";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kobzol";
|
|
repo = "cargo-wizard";
|
|
rev = "v${version}";
|
|
hash = "sha256-oFPSgjXZ+Kq59tV/7s6WPF6FHXENoZv8D245yyT0E9E=";
|
|
};
|
|
|
|
cargoHash = "sha256-wUMdWGUJR9dJ4XRlDFAvHwxCzLSb3WdRhrXt0kr2+Fc=";
|
|
|
|
preCheck = ''
|
|
export PATH=$PATH:$PWD/target/${stdenv.hostPlatform.rust.rustcTarget}/$cargoBuildType
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Cargo subcommand for configuring Cargo profile for best performance";
|
|
homepage = "https://github.com/kobzol/cargo-wizard";
|
|
changelog = "https://github.com/kobzol/cargo-wizard/blob/${src.rev}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kranzes ];
|
|
mainProgram = "cargo-wizard";
|
|
};
|
|
}
|