summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/zo/zoom/package.nix
blob: 52133e858854601e546f14068d152ce8200ef089 (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
  lib,
  stdenv,
  fetchurl,
  perl,
  fontconfig,
  freetype,
  libxrender,
  libxext,
  libx11,
  libsm,
  libice,
  which,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "zoom";
  version = "1.1.5";

  src = fetchurl {
    url = "https://www.logicalshift.co.uk/unix/zoom/zoom-${finalAttrs.version}.tar.gz";
    hash = "sha256-8pZ/HAVV341K6QRDUC0UzzO2rGW2AvSZ++Pp445V27w=";
  };

  nativeBuildInputs = [
    perl
    which
  ];

  buildInputs = [
    fontconfig
    freetype
    libice
    libsm
    libx11
    libxext
    libxrender
  ];

  strictDeps = true;
  __structuredAttrs = true;
  enableParallelBuilding = true;

  env.CFLAGS = "-fgnu89-inline";

  meta = {
    homepage = "https://www.logicalshift.co.uk/unix/zoom/";
    description = "Player for Z-Code, TADS and HUGO stories or games";
    longDescription = ''
      Zoom is a player for Z-Code, TADS and HUGO stories or games. These are
      usually text adventures ('interactive fiction'), and were first created
      by Infocom with the Zork series of games. Throughout the 80's, Infocom
      released many interactive fiction stories before their ambitions to enter
      the database market finally brought them low.
    '';
    license = lib.licenses.gpl3;
    platforms = lib.platforms.linux;
    mainProgram = "zoom";
    broken = true;
  };
})