nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchbzr, gettext
2, gtk2, wrapGAppsHook, autoreconfHook, pkg-config
3, libmikmod, librsvg, libcanberra-gtk2, hicolor-icon-theme }:
4
5stdenv.mkDerivation rec {
6 pname = "gweled";
7 version = "unstable-2021-02-11";
8
9 src = fetchbzr {
10 url = "lp:gweled";
11 rev = "108";
12 sha256 = "sha256-rM4dgbYfSrVqZwi+xzKuEtmtjK3HVvqeutmni1vleLo=";
13 };
14
15 doCheck = false;
16
17 postPatch = ''
18 substituteInPlace configure.ac --replace "AM_GNU_GETTEXT_VERSION([0.19.8])" "AM_GNU_GETTEXT_VERSION([${gettext.version}])"
19 '';
20
21 nativeBuildInputs = [ wrapGAppsHook gettext autoreconfHook pkg-config ];
22
23 buildInputs = [ gtk2 libmikmod librsvg hicolor-icon-theme libcanberra-gtk2 ];
24
25 configureFlags = [ "--disable-setgid" ];
26
27 meta = with lib; {
28 description = "Bejeweled clone game";
29 homepage = "https://gweled.org";
30 license = licenses.gpl2;
31 platforms = platforms.linux;
32 maintainers = [ ];
33 };
34}