nixpkgs/pkgs/games/gweled/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

35 lines
953 B
Nix

{ 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 = [ ];
};
}