diff options
author | Luc Perkins <lucperkins@gmail.com> | 2022-07-26 18:15:11 +0200 |
---|---|---|
committer | Yt <happysalada@proton.me> | 2022-07-26 23:01:01 -0400 |
commit | 9da9722e432e40d877e07cdee44e896ae426f874 (patch) | |
tree | 998b4d726c9da921e8e60ce59d6f24ebfc7da289 /pkgs/development/tools/rust/cargo-profiler | |
parent | 87dc446e3d0e1d56bdd435268a9cb8596314ad81 (diff) |
Add cargo-profiler package
Diffstat (limited to 'pkgs/development/tools/rust/cargo-profiler')
-rw-r--r-- | pkgs/development/tools/rust/cargo-profiler/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/tools/rust/cargo-profiler/default.nix b/pkgs/development/tools/rust/cargo-profiler/default.nix new file mode 100644 index 0000000000000..88a04885a740d --- /dev/null +++ b/pkgs/development/tools/rust/cargo-profiler/default.nix @@ -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 ]; + }; +} |