packages/reflex-cache: use custom devshell
This commit is contained in:
parent
181d548b52
commit
a51da4ca6c
2 changed files with 8 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue