From 62c1b4bdaa607bd047ba486da9bd2bbfd9ad80f0 Mon Sep 17 00:00:00 2001 From: Nejc Zupan Date: Sat, 28 Oct 2023 14:54:39 +0100 Subject: [PATCH] rename package `appEnv-` to `tesh-` --- flake.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index e87ab35..b7f2711 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = ./.; @@ -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;