about summary refs log tree commit diff
path: root/pkgs/games/gweled/default.nix
blob: 484543ad86592b5f9a6daef99e2dc8240410a4f5 (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
{ lib, stdenv, fetchbzr, gettext
, gtk2, wrapGAppsHook, autoreconfHook, pkg-config
, libmikmod, librsvg, libcanberra-gtk2, hicolor-icon-theme }:

stdenv.mkDerivation rec {
  pname = "gweled";
  version = "unstable-2021-02-11";

  src = fetchbzr {
    url = "lp:gweled";
    rev = "108";
    sha256 = "sha256-rM4dgbYfSrVqZwi+xzKuEtmtjK3HVvqeutmni1vleLo=";
  };

  doCheck = false;

  postPatch = ''
    substituteInPlace configure.ac --replace "AM_GNU_GETTEXT_VERSION([0.19.8])" "AM_GNU_GETTEXT_VERSION([${gettext.version}])"
  '';

  nativeBuildInputs = [ wrapGAppsHook gettext autoreconfHook pkg-config ];

  buildInputs = [ gtk2 libmikmod librsvg hicolor-icon-theme libcanberra-gtk2 ];

  configureFlags = [ "--disable-setgid" ];

  meta = with lib; {
    description = "Bejeweled clone game";
    mainProgram = "gweled";
    homepage = "https://gweled.org";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ ];
  };
}