2021-06-29 04:42:37 +02:00
|
|
|
{ stdenvNoCC
|
|
|
|
, lib
|
|
|
|
, buildEnv
|
|
|
|
, df-games
|
|
|
|
, themes
|
|
|
|
, latestVersion
|
|
|
|
, versionToName
|
2018-07-15 07:38:30 +02:00
|
|
|
, dfVersion ? latestVersion
|
2018-07-05 21:09:03 +02:00
|
|
|
# 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
|
2018-07-15 07:38:30 +02:00
|
|
|
# should contain every utility available unless you disable them.
|
2018-07-05 21:09:03 +02:00
|
|
|
, enableDFHack ? stdenvNoCC.isLinux
|
|
|
|
, enableTWBT ? enableDFHack
|
|
|
|
, enableSoundSense ? true
|
2018-07-12 10:42:52 +02:00
|
|
|
, enableStoneSense ? true
|
2018-07-15 08:41:27 +02:00
|
|
|
, enableDwarfTherapist ? true
|
2021-06-29 04:42:37 +02:00
|
|
|
, enableLegendsBrowser ? true
|
|
|
|
, legends-browser
|
2018-07-05 21:09:03 +02:00
|
|
|
, theme ? themes.phoebus
|
2021-06-29 04:42:37 +02:00
|
|
|
# General config options:
|
2018-07-05 21:09:03 +02:00
|
|
|
, enableIntro ? true
|
2022-11-16 16:41:33 +01:00
|
|
|
, enableTruetype ? null # defaults to 24, see init.txt
|
2018-07-05 21:09:03 +02:00
|
|
|
, enableFPS ? false
|
2019-05-05 10:09:18 +02:00
|
|
|
, enableTextMode ? false
|
2020-05-15 04:12:31 +02:00
|
|
|
, enableSound ? true
|
2018-07-05 21:09:03 +02:00
|
|
|
}:
|
|
|
|
|
2018-07-15 07:38:30 +02:00
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
dfGame = versionToName dfVersion;
|
2021-06-29 04:42:37 +02:00
|
|
|
dwarf-fortress =
|
|
|
|
if hasAttr dfGame df-games
|
|
|
|
then getAttr dfGame df-games
|
|
|
|
else throw "Unknown Dwarf Fortress version: ${dfVersion}";
|
2018-07-15 08:41:27 +02:00
|
|
|
dwarf-therapist = dwarf-fortress.dwarf-therapist;
|
2018-07-15 07:38:30 +02:00
|
|
|
in
|
2018-07-05 21:09:03 +02:00
|
|
|
buildEnv {
|
|
|
|
name = "dwarf-fortress-full";
|
|
|
|
paths = [
|
|
|
|
(dwarf-fortress.override {
|
|
|
|
inherit enableDFHack enableTWBT enableSoundSense enableStoneSense theme
|
2021-06-29 04:42:37 +02:00
|
|
|
enableIntro enableTruetype enableFPS enableTextMode enableSound;
|
|
|
|
})
|
|
|
|
]
|
|
|
|
++ lib.optional enableDwarfTherapist dwarf-therapist
|
|
|
|
++ lib.optional enableLegendsBrowser legends-browser;
|
2018-07-05 21:09:03 +02:00
|
|
|
|
2021-01-17 14:51:41 +01:00
|
|
|
meta = with lib; {
|
2018-07-05 21:09:03 +02:00
|
|
|
description = "An opinionated wrapper for Dwarf Fortress";
|
2018-07-15 07:38:30 +02:00
|
|
|
maintainers = with maintainers; [ Baughn numinit ];
|
2018-07-05 21:09:03 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/NixOS/nixpkgs/";
|
2018-07-05 21:09:03 +02:00
|
|
|
};
|
|
|
|
}
|