Fix bug in flake file
This commit is contained in:
parent
ace4288c9d
commit
4cd7275293
|
@ -17,12 +17,12 @@
|
||||||
|
|
||||||
# Get all project directories
|
# Get all project directories
|
||||||
currentDir = builtins.readDir ./.;
|
currentDir = builtins.readDir ./.;
|
||||||
dirs = lib.filterAttrs (_: v: v == "directory") currentDir;
|
dirs = builtins.attrNames (lib.filterAttrs (_: v: v == "directory") currentDir);
|
||||||
in
|
in
|
||||||
lib.concatMapAttrs (dir: _: {
|
builtins.foldl' lib.recursiveUpdate {} (builtins.map (dir: {
|
||||||
packages.${dir} = pkgs.callPackage ./${dir} {};
|
packages.${dir} = pkgs.callPackage ./${dir} {};
|
||||||
} // lib.optionalAttrs (hasShell dir) {
|
} // lib.optionalAttrs (hasShell dir) {
|
||||||
devShells.${dir} = pkgs.callPackage ./${dir}/shell.nix {};
|
devShells.${dir} = pkgs.callPackage ./${dir}/shell.nix {};
|
||||||
}) dirs
|
}) dirs)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ python3, ... }:
|
{ python3 }:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication {
|
python3.pkgs.buildPythonApplication {
|
||||||
pname = "soe-python";
|
pname = "soe-python";
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
{ python3, ... }:
|
{ python3 }:
|
||||||
|
|
||||||
python3.buildEnv.env
|
python3.buildEnv.env
|
||||||
|
|
Loading…
Reference in a new issue