blob: 69f106795239a93972045d2113a78427062390c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ 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";
};
}
|