lol

Add cargo-profiler package

authored by

Luc Perkins and committed by
Yt
9da9722e 87dc446e

+34
+33
pkgs/development/tools/rust/cargo-profiler/default.nix
··· 1 + { fetchFromGitHub 2 + , lib 3 + , rustPlatform }: 4 + 5 + let 6 + # Constants 7 + pname = "cargo-profiler"; 8 + owner = "svenstaro"; 9 + 10 + # Version-specific variables 11 + version = "0.2.0"; 12 + rev = "0a8ab772fd5c0f1579e4847c5d05aa443ffa2bc8"; 13 + sha256 = "sha256-ZRAbvSMrPtgaWy9RwlykQ3iiPxHCMh/tS5p67/4XqqA="; 14 + cargoSha256 = "sha256-qt3S6ZcLEP9ZQoP5+kSQdmBlxdMgGUqLszdU7JkFNVI="; 15 + 16 + inherit (rustPlatform) buildRustPackage; 17 + in buildRustPackage rec { 18 + inherit pname version; 19 + 20 + src = fetchFromGitHub { 21 + inherit owner rev sha256; 22 + repo = pname; 23 + }; 24 + 25 + inherit cargoSha256; 26 + 27 + meta = with lib; { 28 + description = "Cargo subcommand for profiling Rust binaries"; 29 + homepage = "https://github.com/svenstaro/cargo-profiler"; 30 + license = licenses.mit; 31 + maintainers = with maintainers; [ lucperkins ]; 32 + }; 33 + }
+1
pkgs/top-level/all-packages.nix
··· 14231 14231 inherit (darwin.apple_sdk.frameworks) Security; 14232 14232 }; 14233 14233 cargo-play = callPackage ../development/tools/rust/cargo-play { }; 14234 + cargo-profiler = callPackage ../development/tools/rust/cargo-profiler {}; 14234 14235 cargo-raze = callPackage ../development/tools/rust/cargo-raze { 14235 14236 inherit (darwin.apple_sdk.frameworks) Security; 14236 14237 };