nixpkgs/pkgs/games/dwarf-fortress
Naïm Favier 839fdd101c
dwarf-fortress.dfhack: make overridable
Currently, it is quite hard to override anything about dfhack (for
example, to add plugins at build time), because

1. it is not exposed anywhere, so you have to do something like
   `dwarf-fortress.override (oldArgs: { dfhack = oldArgs.dfhack.override...; })`
2. the final `dfhack` derivation is a `buildEnv`, so `overrideAttrs`
   doesn't work as expected.

This fixes 1 by adding `dfhack` to the wrapper's `passthru`, and 2 by
moving `twbt.lib` (which is the only reason for the dfhack `buildEnv`)
into the wrapper.

Also adds an `extraPackages` argument to the wrapper, and copies `*.init`
files from the env to the DF directory so that we can easily add a
`dfhack.init`.

With these changes, I was able to build dfhack with the dfplex plugin.
2022-11-17 00:06:31 +01:00
..
dfhack dwarf-fortress.dfhack: make overridable 2022-11-17 00:06:31 +01:00
dwarf-therapist
legends-browser treewide: set sourceProvenance for packages containing downloaded jars 2022-06-04 19:47:57 +01:00
themes
twbt
wrapper dwarf-fortress.dfhack: make overridable 2022-11-17 00:06:31 +01:00
default.nix dwarf-fortress.dfhack: make overridable 2022-11-17 00:06:31 +01:00
df_permission
game.json
game.nix dwarf-fortress: make meta.homepage independent from download page 2022-10-27 18:55:36 +02:00
lazy-pack.nix
soundsense.nix
unfuck.nix
update.sh