tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
Add cargo-profiler package
authored by
Luc Perkins
and committed by
Yt
3 years ago
9da9722e
87dc446e
+34
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
rust
cargo-profiler
default.nix
top-level
all-packages.nix
+33
pkgs/development/tools/rust/cargo-profiler/default.nix
···
1
1
+
{ fetchFromGitHub
2
2
+
, lib
3
3
+
, rustPlatform }:
4
4
+
5
5
+
let
6
6
+
# Constants
7
7
+
pname = "cargo-profiler";
8
8
+
owner = "svenstaro";
9
9
+
10
10
+
# Version-specific variables
11
11
+
version = "0.2.0";
12
12
+
rev = "0a8ab772fd5c0f1579e4847c5d05aa443ffa2bc8";
13
13
+
sha256 = "sha256-ZRAbvSMrPtgaWy9RwlykQ3iiPxHCMh/tS5p67/4XqqA=";
14
14
+
cargoSha256 = "sha256-qt3S6ZcLEP9ZQoP5+kSQdmBlxdMgGUqLszdU7JkFNVI=";
15
15
+
16
16
+
inherit (rustPlatform) buildRustPackage;
17
17
+
in buildRustPackage rec {
18
18
+
inherit pname version;
19
19
+
20
20
+
src = fetchFromGitHub {
21
21
+
inherit owner rev sha256;
22
22
+
repo = pname;
23
23
+
};
24
24
+
25
25
+
inherit cargoSha256;
26
26
+
27
27
+
meta = with lib; {
28
28
+
description = "Cargo subcommand for profiling Rust binaries";
29
29
+
homepage = "https://github.com/svenstaro/cargo-profiler";
30
30
+
license = licenses.mit;
31
31
+
maintainers = with maintainers; [ lucperkins ];
32
32
+
};
33
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
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
};