mirror of
https://github.com/denismhz/flake.git
synced 2025-11-10 16:51:08 +01:00
This removes the need to have multiple output variations like invokeai-wsl-amd and instead just uses a simple bash wrapper to discover whether the program is being ran in the WSL
21 lines
470 B
Nix
21 lines
470 B
Nix
{ inputs, lib, ... }:
|
|
|
|
{
|
|
perSystem = { config, pkgs, ... }: let
|
|
inherit (config.dependencySets) aipython3-amd aipython3-nvidia;
|
|
|
|
src = inputs.invokeai-src;
|
|
|
|
mkInvokeAIVariant = args: pkgs.callPackage ./package.nix ({ inherit src; } // args);
|
|
in {
|
|
packages = {
|
|
invokeai-amd = mkInvokeAIVariant {
|
|
aipython3 = aipython3-amd;
|
|
};
|
|
invokeai-nvidia = mkInvokeAIVariant {
|
|
aipython3 = aipython3-nvidia;
|
|
};
|
|
};
|
|
};
|
|
}
|