Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nixos/modules/services/web-apps/zipline.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ in
"@system-service"
"~@privileged"
"~@resources"
"@chown"
];
UMask = "0077";
};
Expand Down
27 changes: 23 additions & 4 deletions pkgs/by-name/zi/zipline/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,33 @@ let
PRISMA_INTROSPECTION_ENGINE_BINARY = lib.getExe' prisma-engines "introspection-engine";
PRISMA_FMT_BINARY = lib.getExe' prisma-engines "prisma-fmt";
};

vips' = vips.overrideAttrs (
finalAttrs: prevAttrs: {
version = "8.17.1";
src = fetchFromGitHub {
inherit (prevAttrs.src) owner repo;
tag = "v${finalAttrs.version}";
hash = "sha256-Sc2BWdQIgL/dI0zfbEQVCs3+1QBrLE7BsE3uFHe9C/c=";
postFetch = ''
rm -r $out/test/test-suite/images/
'';
};
outputs = lib.remove "devdoc" prevAttrs.outputs;
mesonFlags = lib.remove (lib.mesonBool "gtk_doc" true) prevAttrs.mesonFlags;
}
);
in

stdenv.mkDerivation (finalAttrs: {
pname = "zipline";
version = "4.2.1";
version = "4.2.3";

src = fetchFromGitHub {
owner = "diced";
repo = "zipline";
tag = "v${finalAttrs.version}";
hash = "sha256-16D44QQHrXn6y+3IRsWh6iHSr+o4l3zHDW7SOFMsHnc=";
hash = "sha256-WyL/ItY/hvmBDRBB063QAIATPT51bPChkFKH7i32sz0=";
leaveDotGit = true;
postFetch = ''
git -C $out rev-parse --short HEAD > $out/.git_head
Expand All @@ -49,12 +65,12 @@ stdenv.mkDerivation (finalAttrs: {
pnpmDeps = pnpm_10.fetchDeps {
inherit (finalAttrs) pname version src;
fetcherVersion = 1;
hash = "sha256-kIneqtLPZ29PzluKUGO4XbQYHbNddu0kTfoP4C22k7U=";
hash = "sha256-LDLcde+p0wjy1BddiNxJwFLS/7O9jGpMNapojZIipeA=";
};

buildInputs = [
openssl
vips
vips'
];

nativeBuildInputs = [
Expand Down Expand Up @@ -85,6 +101,9 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = ''
runHook preInstall

pnpm prune --prod
find node_modules -xtype l -delete

mkdir -p $out/{bin,share/zipline}

cp -r build generated node_modules prisma .next mimes.json code.json package.json $out/share/zipline
Expand Down
Loading