about summary refs log tree commit diff
path: root/pkgs/games/dwarf-fortress/default.nix
blob: ee2e442daa28880dc360ad5474a0a96653ad2384 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ pkgs, stdenv, stdenvNoCC, gccStdenv }:

let
  callPackage = pkgs.newScope self;

  self = rec {
    dwarf-fortress-original = callPackage ./game.nix { };

    dfhack = callPackage ./dfhack {
      inherit (pkgs.perlPackages) XMLLibXML XMLLibXSLT;
      stdenv = gccStdenv;
    };

    soundSense = callPackage ./soundsense.nix { };

    # unfuck is linux-only right now, we will just use it there
    dwarf-fortress-unfuck = if stdenv.isLinux then callPackage ./unfuck.nix { }
                                              else null;

    dwarf-fortress = callPackage ./wrapper {
      themes = {
        "phoebus" = phoebus-theme;
        "cla" = cla-theme;
      };
    };

    dwarf-therapist-original = pkgs.qt5.callPackage ./dwarf-therapist {
      texlive = pkgs.texlive.combine {
        inherit (pkgs.texlive) scheme-basic float caption wrapfig adjmulticol sidecap preprint enumitem;
      };
    };

    dwarf-therapist = callPackage ./dwarf-therapist/wrapper.nix { };

    themes = callPackage ./themes {
      stdenv = stdenvNoCC;
    };

    phoebus-theme = themes.phoebus;

    cla-theme = themes.cla;
  };

in self