Skip to content

Commit

Permalink
rename package appEnv- to tesh-
Browse files Browse the repository at this point in the history
  • Loading branch information
zupo committed Oct 28, 2023
1 parent 43c5153 commit 62c1b4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
supportedPythons = [ "python39" "python310" "python311" ];
forAllPythons = name: f:
let
attrNames = (map (py: if name == "" then "${py}" else "${name}-${py}") supportedPythons);
attrNames = (map (py: "${name}${py}") supportedPythons);
outputs = lib.genAttrs supportedPythons
(python: f python);
in
lib.mapAttrs' (py: value: { name = (if name == "" then "${py}" else "${name}-${py}"); inherit value; }) outputs;
lib.mapAttrs' (py: value: { name = "${name}${py}"; inherit value; }) outputs;

poetryArgs = python: {
projectDir = ./.;
Expand Down Expand Up @@ -100,18 +100,18 @@
};

packages =
(forAllPythons "appEnv" (python:
(forAllPythons "tesh-" (python:
inputs.poetry2nix.legacyPackages.${system}.mkPoetryApplication (poetryArgs python)))

//

(forAllPythons "testEnv" (python:
(forAllPythons "testEnv-" (python:
inputs.poetry2nix.legacyPackages.${system}.mkPoetryEnv (poetryArgs python)));

# `make unit` is not needed as it's already run in pre-commit
# check, registered by flake-parts
checks =
(forAllPythons "tests" (python:
(forAllPythons "tests-" (python:
pkgs.runCommand "tests"
{
buildInputs = self'.devShells."${python}".buildInputs;
Expand Down

0 comments on commit 62c1b4b

Please sign in to comment.