[Backport release-25.05] zipline: 4.2.0 -> 4.2.1, set git sha (#430974)

This commit is contained in:
Felix Bargfeldt
2025-08-04 18:13:41 +02:00
committed by GitHub

View File

@@ -32,13 +32,18 @@ in
stdenv.mkDerivation (finalAttrs: {
pname = "zipline";
version = "4.2.0";
version = "4.2.1";
src = fetchFromGitHub {
owner = "diced";
repo = "zipline";
tag = "v${finalAttrs.version}";
hash = "sha256-zm2xNhWghg/Pa9LhLzV+AG/tfiSjAiSnGs8OMnC0Tpw=";
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 ]} \
${
@@ -117,8 +123,9 @@ stdenv.mkDerivation (finalAttrs: {
meta = {
description = "ShareX/file upload server that is easy to use, packed with features, and with an easy setup";
changelog = "https://github.com/diced/zipline/releases/tag/v${finalAttrs.version}";
homepage = "https://zipline.diced.sh/";
downloadPage = "https://github.com/diced/zipline";
changelog = "https://github.com/diced/zipline/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ defelo ];
mainProgram = "zipline";