mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
zipline: set git sha
This commit is contained in:
@@ -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 ]} \
|
||||
${
|
||||
|
||||
Reference in New Issue
Block a user