Add cargo-profiler package
This commit is contained in:
parent
87dc446e3d
commit
9da9722e43
33
pkgs/development/tools/rust/cargo-profiler/default.nix
Normal file
33
pkgs/development/tools/rust/cargo-profiler/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ fetchFromGitHub
|
||||||
|
, lib
|
||||||
|
, rustPlatform }:
|
||||||
|
|
||||||
|
let
|
||||||
|
# Constants
|
||||||
|
pname = "cargo-profiler";
|
||||||
|
owner = "svenstaro";
|
||||||
|
|
||||||
|
# Version-specific variables
|
||||||
|
version = "0.2.0";
|
||||||
|
rev = "0a8ab772fd5c0f1579e4847c5d05aa443ffa2bc8";
|
||||||
|
sha256 = "sha256-ZRAbvSMrPtgaWy9RwlykQ3iiPxHCMh/tS5p67/4XqqA=";
|
||||||
|
cargoSha256 = "sha256-qt3S6ZcLEP9ZQoP5+kSQdmBlxdMgGUqLszdU7JkFNVI=";
|
||||||
|
|
||||||
|
inherit (rustPlatform) buildRustPackage;
|
||||||
|
in buildRustPackage rec {
|
||||||
|
inherit pname version;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
inherit owner rev sha256;
|
||||||
|
repo = pname;
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit cargoSha256;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Cargo subcommand for profiling Rust binaries";
|
||||||
|
homepage = "https://github.com/svenstaro/cargo-profiler";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ lucperkins ];
|
||||||
|
};
|
||||||
|
}
|
@ -14231,6 +14231,7 @@ with pkgs;
|
|||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
cargo-play = callPackage ../development/tools/rust/cargo-play { };
|
cargo-play = callPackage ../development/tools/rust/cargo-play { };
|
||||||
|
cargo-profiler = callPackage ../development/tools/rust/cargo-profiler {};
|
||||||
cargo-raze = callPackage ../development/tools/rust/cargo-raze {
|
cargo-raze = callPackage ../development/tools/rust/cargo-raze {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user