diff options
author | lassulus <lassulus@lassul.us> | 2018-11-07 20:56:32 +0100 |
---|---|---|
committer | Herwig Hochleitner <herwig@bendlas.net> | 2018-11-08 01:59:56 +0100 |
commit | 0cd1e6732d478c22ac47c875c2f46dca83872775 (patch) | |
tree | 22e5aad20b5e7d559f4fe587ae1f4d8d768fe474 /pkgs/games/dwarf-fortress | |
parent | 2bdec61194bcbea1403b5d9fe72205f230bb6c57 (diff) |
dwarf-fortress: fix theme override
Diffstat (limited to 'pkgs/games/dwarf-fortress')
-rw-r--r-- | pkgs/games/dwarf-fortress/wrapper/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/games/dwarf-fortress/wrapper/default.nix b/pkgs/games/dwarf-fortress/wrapper/default.nix index c1e81bf2b3ac..8672de3af84f 100644 --- a/pkgs/games/dwarf-fortress/wrapper/default.nix +++ b/pkgs/games/dwarf-fortress/wrapper/default.nix @@ -35,8 +35,11 @@ let fixup = lib.singleton (runCommand "fixup" {} ('' mkdir -p $out/data/init + '' + (if (theme != null) then '' + cp ${lib.head themePkg}/data/init/init.txt $out/data/init/init.txt + '' else '' cp ${dwarf-fortress}/data/init/init.txt $out/data/init/init.txt - '' + lib.optionalString enableDFHack '' + '') + lib.optionalString enableDFHack '' mkdir -p $out/hack # Patch the MD5 |