Fix bug in flake file

This commit is contained in:
Kiana Sheibani 2023-02-07 14:55:16 -05:00
parent ace4288c9d
commit 4cd7275293
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
3 changed files with 6 additions and 5 deletions

View file

@ -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)
); );
} }

View file

@ -1,4 +1,4 @@
{ python3, ... }: { python3 }:
python3.pkgs.buildPythonApplication { python3.pkgs.buildPythonApplication {
pname = "soe-python"; pname = "soe-python";

View file

@ -1,2 +1,3 @@
{ python3, ... }: { python3 }:
python3.buildEnv.env python3.buildEnv.env