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 =
lib.mapAttrs
(name: version: {
"${version}" = makePackage name version;
})
args.packages;
{default = packages.${defaultPackageName};}
// (
l.mapAttrs
(name: version: {"${version}" = makePackage name version;})
args.packages
);
# Generates a derivation for a specific package name + version
makePackage = name: version: let