From 7f14501e42c9f6314f85738cb9378b9d1e5c8675 Mon Sep 17 00:00:00 2001 From: Matt Bryant Date: Tue, 28 Mar 2023 20:43:28 -0700 Subject: [PATCH] functiontrace-server: init at 0.5.2 Added initial version of the server-piece of https://functiontrace.com. This is most useful with a functiontrace client, which depends on this and will therefore be added afterwards. --- .../tools/functiontrace-server/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/tools/functiontrace-server/default.nix diff --git a/pkgs/development/tools/functiontrace-server/default.nix b/pkgs/development/tools/functiontrace-server/default.nix new file mode 100644 index 00000000000..abacb1d9f9d --- /dev/null +++ b/pkgs/development/tools/functiontrace-server/default.nix @@ -0,0 +1,23 @@ +{ lib, rustPlatform, fetchCrate, stdenv, darwin }: + +rustPlatform.buildRustPackage rec { + pname = "functiontrace-server"; + version = "0.5.2"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-p6ypMfg99ohQCyPB2O0wXbGmPvD2K9V3EnFDd5dC6js="; + }; + + cargoHash = "sha256-3tLjW7yiS1dNsV81KUZbfN2pvYT9kqiC62nWFid2NH8="; + + buildInputs = lib.optionals stdenv.isDarwin + [ darwin.apple_sdk.frameworks.CoreFoundation ]; + + meta = with lib; { + description = "Server for FunctionTrace, a graphical Python profiler"; + homepage = "https://functiontrace.com"; + license = with licenses; [ prosperity30 ]; + maintainers = with maintainers; [ tehmatt ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 91d3c480437..b8e1332d442 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -542,6 +542,8 @@ with pkgs; frugal = callPackage ../development/tools/frugal { }; + functiontrace-server = callPackage ../development/tools/functiontrace-server { }; + glade = callPackage ../development/tools/glade { }; goda = callPackage ../development/tools/goda { };