This commit is contained in:
Denis Manherz 2023-11-20 13:17:43 +01:00
parent 4ac0c475e2
commit 63e7cba144
3 changed files with 11 additions and 23 deletions

View file

@ -1,19 +1,20 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, poetry-core
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "discord-webhook"; pname = "discord-webhook";
version = "1.3.0"; version = "1.2.1";
format = "pyproject"; format = "pyproject";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = ""; sha256 = "sha256-COB3vzKYNwvyMsUvGqrph/J6WbTRLdDaaA85f5N73ZU=";
}; };
propagatedBuildInputs = [ ]; propagatedBuildInputs = [ poetry-core ];
doCheck = false; doCheck = false;

View file

@ -78,16 +78,12 @@ in
]; ];
python3Variants = { python3Variants = {
amd = l.overlays.applyOverlays pkgs.python3Packages (commonOverlays ++ [
overlays.python-torchRocm
]);
nvidia = l.overlays.applyOverlays pkgs.python3Packages (commonOverlays ++ [ nvidia = l.overlays.applyOverlays pkgs.python3Packages (commonOverlays ++ [
overlays.python-torchCuda overlays.python-torchCuda
]); ]);
}; };
src = inputs.a1111-src; src = inputs.a1111-src;
mkAutomatic1111Variant = args: pkgs.callPackage ./package.nix ({ inherit src; sd-src = inputs.sd-src; sgm-src = inputs.sgm-src; } // args); mkAutomatic1111Variant = args: pkgs.callPackage ./package.nix ({ inherit src; sd-src = inputs.sd-src; sgm-src = inputs.sgm-src; } // args);
in { in {
packages = { packages = {
@ -95,11 +91,6 @@ in
python3Packages = python3Variants.nvidia; python3Packages = python3Variants.nvidia;
}; };
}; };
legacyPackages = {
a1111-amd = throw ''
AMD not done yet.
'';
};
}; };
flake.nixosModules = let flake.nixosModules = let
@ -110,12 +101,6 @@ in
}; };
in { in {
a1111 = ./nixos; a1111 = ./nixos;
a1111-amd = {
imports = [
config.flake.nixosModules.invokeai
(packageModule "a1111-amd")
];
};
invokeai-nvidia = { invokeai-nvidia = {
imports = [ imports = [
config.flake.nixosModules.invokeai config.flake.nixosModules.invokeai

View file

@ -19,10 +19,12 @@ python3Packages.buildPythonPackage {
version = "v1.6.0"; version = "v1.6.0";
inherit src; inherit src;
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
discord-webhook imageio #animatediff create webm and shit
numexpr av #animatediff create webm and shit
deforum discord-webhook #for dreambooth i think
ultralytics numexpr #for some extension
deforum #for some extension
ultralytics #extension
k_diffusion k_diffusion
inflection inflection
gdown gdown
@ -31,7 +33,7 @@ python3Packages.buildPythonPackage {
openclip openclip
semver semver
numpy numpy
rich rich #extension
torchsde torchsde
uvicorn uvicorn
pyperclip pyperclip