mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
factorio-utils: fix recursive mod dependency resolution
This commit is contained in:
parent
b084cf2d30
commit
9eb7b9af36
|
@ -5,7 +5,7 @@ with stdenv.lib;
|
||||||
{
|
{
|
||||||
mkModDirDrv = mods: # a list of mod derivations
|
mkModDirDrv = mods: # a list of mod derivations
|
||||||
let
|
let
|
||||||
recursiveDeps = modDrv: [modDrv] ++ optionals (modDrv.deps == []) (map recursiveDeps modDrv.deps);
|
recursiveDeps = modDrv: [modDrv] ++ map recursiveDeps modDrv.deps;
|
||||||
modDrvs = unique (flatten (map recursiveDeps mods));
|
modDrvs = unique (flatten (map recursiveDeps mods));
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
|
|
Loading…
Reference in a new issue