immich-machine-learning: move from immich.machine-learning

A top-level attribute makes sure Hydra builds it (though that already
happens on Linux through the NixOS test) and that nixpkgs-review picks
it up.
This commit is contained in:
Robert Schütz
2024-09-24 09:11:11 -07:00
parent 797b7e1ce7
commit 2b4480d161
2 changed files with 3 additions and 4 deletions

View File

@@ -1,6 +1,5 @@
{
lib,
src,
fetchFromGitHub,
immich,
python3,
@@ -31,7 +30,7 @@ in
python.pkgs.buildPythonApplication {
pname = "immich-machine-learning";
inherit (immich) version;
src = "${src}/machine-learning";
src = "${immich.src}/machine-learning";
pyproject = true;
postPatch = ''

View File

@@ -8,7 +8,7 @@
node-gyp,
runCommand,
nixosTests,
callPackage,
immich-machine-learning,
# build-time deps
glib,
pkg-config,
@@ -210,7 +210,7 @@ buildNpmPackage' {
inherit (nixosTests) immich;
};
machine-learning = callPackage ./machine-learning.nix { inherit src; };
machine-learning = immich-machine-learning;
inherit
src