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