php: simple builder define default package

This commit is contained in:
Martin Toman 2022-09-09 13:39:38 -07:00
parent b2269bd1cb
commit eec7febc8d

View File

@ -38,11 +38,12 @@
# packages to export # packages to export
packages = packages =
lib.mapAttrs {default = packages.${defaultPackageName};}
(name: version: { // (
"${version}" = makePackage name version; l.mapAttrs
}) (name: version: {"${version}" = makePackage name version;})
args.packages; args.packages
);
# Generates a derivation for a specific package name + version # Generates a derivation for a specific package name + version
makePackage = name: version: let makePackage = name: version: let