2021-07-03 03:11:41 +00:00
|
|
|
{ stdenvNoCC
|
|
|
|
, lib
|
|
|
|
, buildEnv
|
|
|
|
, df-games
|
|
|
|
, themes
|
|
|
|
, latestVersion
|
|
|
|
, versionToName
|
2020-04-24 23:36:52 +00:00
|
|
|
, dfVersion ? latestVersion
|
|
|
|
# This package should, at any given time, provide an opinionated "optimal"
|
|
|
|
# DF experience. It's the equivalent of the Lazy Newbie Pack, that is, and
|
|
|
|
# should contain every utility available unless you disable them.
|
|
|
|
, enableDFHack ? stdenvNoCC.isLinux
|
|
|
|
, enableTWBT ? enableDFHack
|
|
|
|
, enableSoundSense ? true
|
|
|
|
, enableStoneSense ? true
|
|
|
|
, enableDwarfTherapist ? true
|
2021-07-03 03:11:41 +00:00
|
|
|
, enableLegendsBrowser ? true
|
|
|
|
, legends-browser
|
2020-04-24 23:36:52 +00:00
|
|
|
, theme ? themes.phoebus
|
2021-07-03 03:11:41 +00:00
|
|
|
# General config options:
|
2020-04-24 23:36:52 +00:00
|
|
|
, enableIntro ? true
|
2022-12-02 08:20:57 +00:00
|
|
|
, enableTruetype ? null # defaults to 24, see init.txt
|
2020-04-24 23:36:52 +00:00
|
|
|
, enableFPS ? false
|
|
|
|
, enableTextMode ? false
|
2020-05-29 06:06:01 +00:00
|
|
|
, enableSound ? true
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
dfGame = versionToName dfVersion;
|
2021-07-03 03:11:41 +00:00
|
|
|
dwarf-fortress =
|
|
|
|
if hasAttr dfGame df-games
|
|
|
|
then getAttr dfGame df-games
|
|
|
|
else throw "Unknown Dwarf Fortress version: ${dfVersion}";
|
2020-04-24 23:36:52 +00:00
|
|
|
dwarf-therapist = dwarf-fortress.dwarf-therapist;
|
|
|
|
in
|
|
|
|
buildEnv {
|
|
|
|
name = "dwarf-fortress-full";
|
|
|
|
paths = [
|
|
|
|
(dwarf-fortress.override {
|
|
|
|
inherit enableDFHack enableTWBT enableSoundSense enableStoneSense theme
|
2021-07-03 03:11:41 +00:00
|
|
|
enableIntro enableTruetype enableFPS enableTextMode enableSound;
|
|
|
|
})
|
|
|
|
]
|
|
|
|
++ lib.optional enableDwarfTherapist dwarf-therapist
|
|
|
|
++ lib.optional enableLegendsBrowser legends-browser;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An opinionated wrapper for Dwarf Fortress";
|
|
|
|
maintainers = with maintainers; [ Baughn numinit ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
homepage = "https://github.com/NixOS/nixpkgs/";
|
|
|
|
};
|
|
|
|
}
|