zipline: set git sha

This commit is contained in:
Defelo
2025-07-30 21:05:15 +02:00
parent 6087625ade
commit ec82ddc977

View File

@@ -38,7 +38,12 @@ stdenv.mkDerivation (finalAttrs: {
owner = "diced";
repo = "zipline";
tag = "v${finalAttrs.version}";
hash = "sha256-tNI+iiutziSfymNwEJEcR74E9/t817LOIE517hmNy9I=";
hash = "sha256-16D44QQHrXn6y+3IRsWh6iHSr+o4l3zHDW7SOFMsHnc=";
leaveDotGit = true;
postFetch = ''
git -C $out rev-parse --short HEAD > $out/.git_head
rm -rf $out/.git
'';
};
pnpmDeps = pnpm_10.fetchDeps {
@@ -88,6 +93,7 @@ stdenv.mkDerivation (finalAttrs: {
makeWrapper ${lib.getExe nodejs_24} "$out/bin/$1" \
--chdir "$out/share/zipline" \
--set NODE_ENV production \
--set ZIPLINE_GIT_SHA "$(<$src/.git_head)" \
--prefix PATH : ${lib.makeBinPath [ openssl ]} \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ openssl ]} \
${