Skip to content

Commit

Permalink
Merge pull request #1414 from dsalaza4/main
Browse files Browse the repository at this point in the history
feat(cross): #1223 use jobs approach
  • Loading branch information
dsalaza4 authored Dec 19, 2024
2 parents f23013d + 8d5f70c commit 1c9c199
Show file tree
Hide file tree
Showing 23 changed files with 214 additions and 384 deletions.
6 changes: 4 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ let
agnostic = import ./src/args/agnostic.nix { inherit system; };

args = agnostic // {
outputs."/cli/env/runtime" = import ./makes/cli/env/runtime/main.nix args;
outputs."/cli/env/runtime" =
(import ./makes/cli/env/runtime/makes.nix args).jobs."/cli/env/runtime";
outputs."/cli/env/runtime/pypi" =
import ./makes/cli/env/runtime/pypi/main.nix args;
(import ./makes/cli/env/runtime/pypi/makes.nix
args).jobs."/cli/env/runtime/pypi";
projectPath = import ./src/args/project-path args;
projectSrc = ./.;
};
Expand Down
13 changes: 0 additions & 13 deletions makes/cli/env/runtime/main.nix

This file was deleted.

14 changes: 14 additions & 0 deletions makes/cli/env/runtime/makes.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ __nixpkgs__, makeSearchPaths, outputs, ... }: {
jobs."/cli/env/runtime" = makeSearchPaths {
bin = [
__nixpkgs__.cachix
__nixpkgs__.findutils
__nixpkgs__.git
__nixpkgs__.gnutar
__nixpkgs__.gzip
__nixpkgs__.nixVersions.nix_2_15
__nixpkgs__.openssh
];
source = [ outputs."/cli/env/runtime/pypi" ];
};
}
5 changes: 0 additions & 5 deletions makes/cli/env/runtime/pypi/main.nix

This file was deleted.

6 changes: 6 additions & 0 deletions makes/cli/env/runtime/pypi/makes.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{ makePythonEnvironment, ... }: {
jobs."/cli/env/runtime/pypi" = makePythonEnvironment {
pythonProjectDir = ./.;
pythonVersion = "3.11";
};
}
9 changes: 4 additions & 5 deletions makes/cli/env/runtime/pypi/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion makes/cli/env/runtime/pypi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ python = "^3.11"
rich = "12.6.0"
textual = "0.1.18"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
5 changes: 0 additions & 5 deletions makes/cli/env/test/main.nix

This file was deleted.

156 changes: 0 additions & 156 deletions makes/cli/env/test/poetry.lock

This file was deleted.

16 changes: 0 additions & 16 deletions makes/cli/env/test/pyproject.toml

This file was deleted.

Loading

0 comments on commit 1c9c199

Please sign in to comment.