1{ lib, rustPlatform, fetchCrate, stdenv, darwin }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "functiontrace-server";
5 version = "0.5.2";
6
7 src = fetchCrate {
8 inherit pname version;
9 hash = "sha256-p6ypMfg99ohQCyPB2O0wXbGmPvD2K9V3EnFDd5dC6js=";
10 };
11
12 cargoHash = "sha256-3tLjW7yiS1dNsV81KUZbfN2pvYT9kqiC62nWFid2NH8=";
13
14 buildInputs = lib.optionals stdenv.isDarwin
15 [ darwin.apple_sdk.frameworks.CoreFoundation ];
16
17 meta = with lib; {
18 description = "Server for FunctionTrace, a graphical Python profiler";
19 homepage = "https://functiontrace.com";
20 license = with licenses; [ prosperity30 ];
21 maintainers = with maintainers; [ tehmatt ];
22 };
23}