diff options
author | Nick Hu <me@nickhu.co.uk> | 2020-06-09 13:16:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 13:16:33 +0100 |
commit | a505e9d7f411ee1b8a2540feb5b0e34263e80fa3 (patch) | |
tree | adb2de858f22e8c597babfcb6843366394b02974 /pkgs/games/factorio | |
parent | de94d7a4f8f0f1439a829a0cc66a1f8ee3baa14e (diff) | |
parent | 9eb7b9af36bcc802110abdb707f22aa91e406375 (diff) |
Merge pull request #89440 from priegger/fix/factorio-mkModDirDrv
factorio-utils: fix recursive mod dependency resolution
Diffstat (limited to 'pkgs/games/factorio')
-rw-r--r-- | pkgs/games/factorio/utils.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/games/factorio/utils.nix b/pkgs/games/factorio/utils.nix index 563ece6cb9c2..2764592a3246 100644 --- a/pkgs/games/factorio/utils.nix +++ b/pkgs/games/factorio/utils.nix @@ -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 { |