packages/reflex-cache: use custom devshell

This commit is contained in:
Max Headroom 2022-03-21 21:42:02 +01:00
parent 181d548b52
commit a51da4ca6c
2 changed files with 8 additions and 5 deletions

View file

@ -4,7 +4,9 @@ let
inherit (inputs.devshell.legacyPackages.${system}) mkShell;
injectAttrName = name: value: value // { inherit name; };
wrapInAttrs = value: if builtins.isAttrs value then value else { inherit value; };
injectAttrName = name: value: { inherit name; } // wrapInAttrs value;
mkNamedAttrs = builtins.mapAttrs injectAttrName;

View file

@ -41,13 +41,14 @@ in
devShells = {
reflex-cache = let
inherit (inputs.self.packages.${system}) reflex-cache;
in pkgs.mkShell {
buildInputs = with pkgs; [
poetry
in mkShell {
packages = [
reflex-cache.dependencyEnv
];
commands.poetry.package = pkgs.poetry;
PYTHON = reflex-cache.dependencyEnv.interpreter;
env.PYTHON = reflex-cache.dependencyEnv.interpreter;
};
};
}