push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/scripts/prepack.sh b/scripts/prepack.sh
index 2172706..1f8f152 100755
--- a/scripts/prepack.sh
+++ b/scripts/prepack.sh
@@ -41,7 +41,7 @@ mkdir -p "$OUTDIR"
# Place info about the current commit into the build dir to easily identify releases
npm ls -depth -1 | head -n 1 | cut -d' ' -f 1 > "$OUTDIR"/release.txt
date >> "$OUTDIR"/release.txt
-git rev-parse HEAD >> "$OUTDIR"/release.txt
+cp COMMIT "$OUTDIR"/release.txt
# Place a json schema for the file format into the build directory too
node scripts/generate-file-format-schema-json.js > "$OUTDIR"/file-format-schema.json

View File

@@ -0,0 +1,58 @@
{
lib,
buildNpmPackage,
fetchFromGitHub,
versionCheckHook,
}:
buildNpmPackage rec {
pname = "speedscope";
version = "1.23.1";
src = fetchFromGitHub {
owner = "jlfwong";
repo = "speedscope";
tag = "v${version}";
hash = "sha256-PIyx4ceihTSLRDP5MW3n6edtYNFOnx8Uo7qUWW7LTs8=";
# scripts/prepack.sh wants to extract the git commit from .git
# We don't want to keep .git for reproducibility reasons, so save the commit
# to a file and patch the script.
leaveDotGit = true;
postFetch = ''
( cd $out; git rev-parse HEAD > COMMIT )
rm -rf $out/.git
'';
};
npmDepsHash = "sha256-xpFrkKAaFbVE1zJ/haibQte4HjUWmeBR8BVjZuSoyjI=";
patches = [
./fix-shebang.patch
];
postConfigure = ''
patchShebangs scripts
'';
dontNpmBuild = true;
postFixup = ''
# Remove some dangling symlinks
rm $out/lib/node_modules/speedscope/node_modules/.bin/sshpk*
'';
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
meta = {
description = "Fast and interactive web-based viewer for performance profiles";
homepage = "https://github.com/jlfwong/speedscope";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
mainProgram = "speedscope";
maintainers = with lib.maintainers; [ thomasjm ];
};
}