evolive/pkgs/python/default.nix

20 lines
392 B
Nix
Raw Normal View History

{ pkgs, python3 }:
let
callPackage = pkgs.lib.callPackageWith (
pkgs // { inherit python3; } // python3.pkgs // python3Packages
);
python3Packages = mkPackages ./.;
mkPackages =
dir:
with builtins;
listToAttrs (
map (name: {
inherit name;
value = callPackage (dir + "/${name}") { };
}) (attrNames (readDir dir))
);
in
python3Packages