summaryrefslogtreecommitdiff
path: root/pkgs/rftg/default.nix
blob: d2ed7912c3c1bdcd4dc861ceff988daffa9342f0 (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
{
  lib,
  stdenv,
  fetchurl,
  gtk2,
  pkg-config,
  hostname,
}:
stdenv.mkDerivation rec {
  pname = "rftg";
  version = "0.9.5";

  src = fetchurl {
    url = "https://github.com/bnordli/rftg/archive/refs/tags/${version}.tar.gz";
    sha256 = "sha256-y/LluUDpNr5Umxc/XPO2mMQWhZ50NxoDkZ7VYt0Sd18=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [
    gtk2.dev
    hostname
  ];

  preConfigure = ''
    cd src/
  '';

  installFlags = [ "prefix=$(out)" ];

  meta = {
    homepage = "http://keldon.net/rftg/";
    description = "Implementation of the card game Race for the Galaxy, including an AI";
    license = lib.licenses.gpl2Plus;
  };
}