tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
samply: init at 0.11.0
https://github.com/mstange/samply
figsoda
2 years ago
ffe2bb95
82bf0a1e
+57
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
misc
samply
default.nix
top-level
all-packages.nix
+55
pkgs/development/tools/misc/samply/default.nix
···
1
1
+
{ lib
2
2
+
, rustPlatform
3
3
+
, fetchCrate
4
4
+
, jq
5
5
+
, moreutils
6
6
+
, stdenv
7
7
+
, darwin
8
8
+
}:
9
9
+
10
10
+
rustPlatform.buildRustPackage rec {
11
11
+
pname = "samply";
12
12
+
version = "0.11.0";
13
13
+
14
14
+
src = fetchCrate {
15
15
+
inherit pname version;
16
16
+
hash = "sha256-V0uAS7Oo7wv0yU5CgqqYhltwM5PXJ3GP/TLVZV2GkkI=";
17
17
+
};
18
18
+
19
19
+
cargoHash = "sha256-jsuICNVY3noZi/+mgVj9uUu53z+5bW9Vi5CBKcHOqSI=";
20
20
+
21
21
+
# the dependencies linux-perf-data and linux-perf-event-reader contains both README.md and Readme.md,
22
22
+
# which causes a hash mismatch on systems with a case-insensitive filesystem
23
23
+
# this removes the readme files and updates cargo's checksum file accordingly
24
24
+
depsExtraArgs = {
25
25
+
nativeBuildInputs = [
26
26
+
jq
27
27
+
moreutils
28
28
+
];
29
29
+
30
30
+
postBuild = ''
31
31
+
for crate in linux-perf-data linux-perf-event-reader; do
32
32
+
pushd $name/$crate
33
33
+
34
34
+
rm -f README.md Readme.md
35
35
+
jq 'del(.files."README.md") | del(.files."Readme.md")' \
36
36
+
.cargo-checksum.json -c \
37
37
+
| sponge .cargo-checksum.json
38
38
+
39
39
+
popd
40
40
+
done
41
41
+
'';
42
42
+
};
43
43
+
44
44
+
buildInputs = lib.optionals stdenv.isDarwin [
45
45
+
darwin.apple_sdk.frameworks.CoreServices
46
46
+
];
47
47
+
48
48
+
meta = with lib; {
49
49
+
description = "A command line profiler for macOS and Linux";
50
50
+
homepage = "https://github.com/mstange/samply";
51
51
+
changelog = "https://github.com/mstange/samply/releases/tag/samply-v${version}";
52
52
+
license = with licenses; [ asl20 mit ];
53
53
+
maintainers = with maintainers; [ figsoda ];
54
54
+
};
55
55
+
}
+2
pkgs/top-level/all-packages.nix
···
19729
19729
19730
19730
saleae-logic-2 = callPackage ../development/tools/misc/saleae-logic-2 { };
19731
19731
19732
19732
+
samply = callPackage ../development/tools/misc/samply { };
19733
19733
+
19732
19734
sauce-connect = callPackage ../development/tools/sauce-connect { };
19733
19735
19734
19736
sawjap = callPackage ../development/tools/java/sawjap { };