immich{,-cli,-machine-learning}: enable __structuredAttrs and strictDeps (#566887)

This commit is contained in:
dotlambda
2026-09-25 16:19:28 +00:00
committed by GitHub
3 changed files with 16 additions and 0 deletions

View File

@@ -4,6 +4,7 @@
jq,
nodejs,
makeWrapper,
runtimeShellPackage,
stdenv,
versionCheckHook,
pnpmConfigHook,
@@ -12,6 +13,9 @@ stdenv.mkDerivation (finalAttrs: {
pname = "immich-cli";
inherit (immich) version src pnpmDeps;
__structuredAttrs = true;
strictDeps = true;
nativeBuildInputs = [
jq
makeWrapper
@@ -20,6 +24,10 @@ stdenv.mkDerivation (finalAttrs: {
immich.pnpm
];
buildInputs = [
runtimeShellPackage
];
buildPhase = ''
runHook preBuild

View File

@@ -16,6 +16,8 @@ python.pkgs.buildPythonApplication rec {
src = "${immich.src}/machine-learning";
pyproject = true;
__structuredAttrs = true;
pythonRelaxDeps = [
"onnx"
];

View File

@@ -33,6 +33,7 @@
pango,
perl,
pixman,
runtimeShellPackage,
vips,
buildPackages,
}:
@@ -111,6 +112,9 @@ stdenv.mkDerivation (finalAttrs: {
pname = "immich";
version = "3.2.2";
__structuredAttrs = true;
strictDeps = true;
src = fetchFromGitHub {
owner = "immich-app";
repo = "immich";
@@ -157,6 +161,8 @@ stdenv.mkDerivation (finalAttrs: {
pixman
# Required for sharp
vips
# Required for some packages in node_modules
runtimeShellPackage
];
env.SHARP_FORCE_GLOBAL_LIBVIPS = 1;