factorio-utils: fix recursive mod dependency resolution

This commit is contained in:
Philipp Riegger 2020-06-03 21:50:58 +02:00
parent b084cf2d30
commit 9eb7b9af36

View file

@ -5,7 +5,7 @@ with stdenv.lib;
{
mkModDirDrv = mods: # a list of mod derivations
let
recursiveDeps = modDrv: [modDrv] ++ optionals (modDrv.deps == []) (map recursiveDeps modDrv.deps);
recursiveDeps = modDrv: [modDrv] ++ map recursiveDeps modDrv.deps;
modDrvs = unique (flatten (map recursiveDeps mods));
in
stdenv.mkDerivation {