flake/projects/invokeai/default.nix
matthewcroughan 339a78b0e2 invokeai: support WSL via wrapper, not extra outputs
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
2023-02-25 22:19:40 +00:00

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;
};
};
};
}