chore: rename bulkgen to hokusai
This commit is contained in:
parent
a28cc97aed
commit
4def49350e
32 changed files with 215 additions and 213 deletions
30
flake.nix
30
flake.nix
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
description = "bulkgen - Bulk-Generate Images with Generative AI";
|
||||
description = "hokusai - Bulk-Generate Images with Generative AI";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
|
@ -63,15 +63,15 @@
|
|||
};
|
||||
|
||||
pyprojectOverrides = _final: prev: {
|
||||
bulkgen = prev.bulkgen.overrideAttrs (old: {
|
||||
hokusai = prev.hokusai.overrideAttrs (old: {
|
||||
passthru = old.passthru // {
|
||||
tests = (old.passthru.tests or { }) // {
|
||||
pytest = stdenv.mkDerivation {
|
||||
name = "${_final.bulkgen.name}-pytest";
|
||||
inherit (_final.bulkgen) src;
|
||||
name = "${_final.hokusai.name}-pytest";
|
||||
inherit (_final.hokusai) src;
|
||||
nativeBuildInputs = [
|
||||
(_final.mkVirtualEnv "bulkgen-pytest-env" {
|
||||
bulkgen = [ "dev" ];
|
||||
(_final.mkVirtualEnv "hokusai-pytest-env" {
|
||||
hokusai = [ "dev" ];
|
||||
})
|
||||
];
|
||||
dontConfigure = true;
|
||||
|
|
@ -108,7 +108,7 @@
|
|||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pythonSet = pythonSets.${system};
|
||||
venv = pythonSet.mkVirtualEnv "bulkgen-check-env" workspace.deps.default;
|
||||
venv = pythonSet.mkVirtualEnv "hokusai-check-env" workspace.deps.default;
|
||||
in
|
||||
git-hooks.lib.${system}.run {
|
||||
src = ./.;
|
||||
|
|
@ -142,17 +142,17 @@
|
|||
inherit (pkgs.callPackages pyproject-nix.build.util { }) mkApplication;
|
||||
in
|
||||
rec {
|
||||
bulkgen = mkApplication {
|
||||
venv = pythonSet.mkVirtualEnv "bulkgen-env" workspace.deps.default;
|
||||
package = pythonSet.bulkgen;
|
||||
hokusai = mkApplication {
|
||||
venv = pythonSet.mkVirtualEnv "hokusai-env" workspace.deps.default;
|
||||
package = pythonSet.hokusai;
|
||||
};
|
||||
default = bulkgen;
|
||||
default = hokusai;
|
||||
}
|
||||
);
|
||||
|
||||
homeManagerModules = rec {
|
||||
bulkgen = import ./nix/hm-module.nix self;
|
||||
default = bulkgen;
|
||||
hokusai = import ./nix/hm-module.nix self;
|
||||
default = hokusai;
|
||||
};
|
||||
|
||||
checks = forAllSystems (
|
||||
|
|
@ -161,7 +161,7 @@
|
|||
pythonSet = pythonSets.${system};
|
||||
in
|
||||
{
|
||||
inherit (pythonSet.bulkgen.passthru.tests) pytest;
|
||||
inherit (pythonSet.hokusai.passthru.tests) pytest;
|
||||
pre-commit = mkGitHooksCheck system;
|
||||
}
|
||||
);
|
||||
|
|
@ -171,7 +171,7 @@
|
|||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pythonSet = pythonSets.${system}.overrideScope editableOverlay;
|
||||
virtualenv = pythonSet.mkVirtualEnv "bulkgen-dev-env" workspace.deps.all;
|
||||
virtualenv = pythonSet.mkVirtualEnv "hokusai-dev-env" workspace.deps.all;
|
||||
in
|
||||
{
|
||||
default = pkgs.mkShell {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue