Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 rustPlatform,
4 fetchCrate,
5 versionCheckHook,
6 nix-update-script,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "samply";
11 version = "0.13.1";
12
13 src = fetchCrate {
14 inherit pname version;
15 hash = "sha256-zTwAsE6zXY3esO7x6UTCO2DbzdUSKZ6qc5Rr9qcI+Z8=";
16 };
17
18 cargoHash = "sha256-mQykzO9Ldokd3PZ1fY4pK/GtLmYMVas2iHj1Pqi9WqQ=";
19
20 nativeInstallCheckInputs = [ versionCheckHook ];
21 versionCheckProgramArg = "--version";
22 doInstallCheck = true;
23
24 passthru.updateScript = nix-update-script { };
25
26 meta = {
27 description = "Command line profiler for macOS and Linux";
28 homepage = "https://github.com/mstange/samply";
29 changelog = "https://github.com/mstange/samply/releases/tag/samply-v${version}";
30 license = with lib.licenses; [
31 asl20
32 mit
33 ];
34 maintainers = with lib.maintainers; [ figsoda ];
35 mainProgram = "samply";
36 };
37}