mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-18 20:11:33 +03:00
php: simple builder define default package
This commit is contained in:
parent
b2269bd1cb
commit
eec7febc8d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user