mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
immich{,-cli,-machine-learning}: enable __structuredAttrs and strictDeps (#566887)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ python.pkgs.buildPythonApplication rec {
|
||||
src = "${immich.src}/machine-learning";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"onnx"
|
||||
];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user