aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/hashi/default.nix38
-rw-r--r--packages/perf-flamegraph-pid/default.nix35
-rwxr-xr-xpackages/perf-flamegraph-pid/perf-flamegraph-pid.sh20
-rw-r--r--packages/sapi/default.nix49
4 files changed, 0 insertions, 142 deletions
diff --git a/packages/hashi/default.nix b/packages/hashi/default.nix
deleted file mode 100644
index 97de12a..0000000
--- a/packages/hashi/default.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-{
- stdenv,
- fetchurl,
- lib,
- ...
-}:
-let
- url = "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/hashi/0.1.4/bin/hashi_darwin-amd64";
-in
-stdenv.mkDerivation rec {
- pname = "hashi";
- version = "0.1.4";
- src = fetchurl {
- inherit url;
- sha256 = "sha256-uX6AdOUfh6JEwS20kQwjp9Os12lVOGoCajOV9sYWXtA=";
- };
-
- installPhase = ''
- mkdir -p $out/bin
- cp $src $out/bin/hashi
- chmod +x $out/bin/hashi
- '';
-
- dontUnpack = true;
- dontStrip = true;
- doInstallCheck = true;
-
- installCheckPhase = ''
- $out/bin/hashi -e sitetest3 version
- '';
-
- meta = with lib; {
- description = "hashi command-line tool";
- homepage = "http://go/hashicli";
- license = licenses.unfree;
- platforms = [ "x86_64-darwin" ];
- };
-}
diff --git a/packages/perf-flamegraph-pid/default.nix b/packages/perf-flamegraph-pid/default.nix
deleted file mode 100644
index 9b3789b..0000000
--- a/packages/perf-flamegraph-pid/default.nix
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- lib,
- stdenvNoCC,
- pkgs,
-}:
-
-stdenvNoCC.mkDerivation rec {
- pname = "perf-flamegraph-pid";
- src = ./perf-flamegraph-pid.sh;
- version = "0.1.0";
-
- nativeBuildInputs = with pkgs; [
- flamegraph
- linuxPackages_latest.perf
- ];
- propagatedBuildInputs = with pkgs; [
- flamegraph
- linuxPackages_latest.perf
- ];
-
- dontUnpack = true;
- dontBuild = true;
-
- installPhase = ''
- mkdir -p $out/bin
- cp $src $out/bin/${pname}
- '';
-
- meta = with lib; {
- description = "Generate a process' flame graph.";
- license = with licenses; [ mit ];
- platforms = platforms.unix;
- maintainers = with maintainers; [ fcuny ];
- };
-}
diff --git a/packages/perf-flamegraph-pid/perf-flamegraph-pid.sh b/packages/perf-flamegraph-pid/perf-flamegraph-pid.sh
deleted file mode 100755
index 2ca3d16..0000000
--- a/packages/perf-flamegraph-pid/perf-flamegraph-pid.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env bash
-
-set -euo pipefail
-
-OUT_DIR="${HOME}/workspace/debug/flamegraph"
-OUT_DATA="${OUT_DIR}/$(date +%y%m%d-%H%M%S).data"
-OUT_SVG="${OUT_DIR}/$(date +%y%m%d-%H%M%S).svg"
-
-mkdir -p "${OUT_DIR}"
-
-# record the data with perf. We need to run this with sudo to get all
-# the privileges we need.
-sudo perf record -g --call-graph dwarf --freq max --output "${OUT_DATA}" "$@"
-
-# give me ownership of the file
-sudo chown "${USER}" "${OUT_DATA}"
-
-perf script --input "${OUT_DATA}" |
- stackcollapse-perf.pl |
- flamegraph.pl >"${OUT_SVG}"
diff --git a/packages/sapi/default.nix b/packages/sapi/default.nix
deleted file mode 100644
index a939685..0000000
--- a/packages/sapi/default.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- stdenv,
- fetchurl,
- lib,
- ...
-}:
-let
- version = "1.2.4";
- sources = {
- x86_64-darwin = {
- url = "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/sapi-cli/darwin-amd64/v${version}/sapi";
- sha256 = "sha256-Il/aqGzxtI84TdUAz4Fvw8RbAgGBZQPN3MZrOitrpVk=";
- };
- aarch64-darwin = {
- url = "https://artifactory.rbx.com:443/artifactory/generic-rbx-local/sapi-cli/darwin-arm64/v${version}/sapi";
- sha256 = "sha256-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx="; # Replace with actual SHA
- };
- };
-in
-stdenv.mkDerivation rec {
- pname = "sapi";
- inherit version;
-
- src = fetchurl {
- inherit (sources.${stdenv.hostPlatform.system})
- url
- sha256
- ;
- };
-
- installPhase = ''
- mkdir -p $out/bin
- cp $src $out/bin/sapi
- chmod +x $out/bin/sapi
- '';
-
- dontUnpack = true;
- dontStrip = true;
-
- meta = with lib; {
- description = "sapi command-line tool";
- homepage = "https://go/sapi";
- license = licenses.unfree;
- platforms = [
- "x86_64-darwin"
- "aarch64-darwin"
- ];
- };
-}