Merge pull request #89440 from priegger/fix/factorio-mkModDirDrv

factorio-utils: fix recursive mod dependency resolution
This commit is contained in:
Nick Hu 2020-06-09 13:16:33 +01:00 committed by GitHub
commit a505e9d7f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {