nixpkgs/pkgs/games/gtetrinet/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

47 lines
1.2 KiB
Nix

{ fetchFromGitHub, lib, stdenv, autoreconfHook, intltool, pkg-config, libgnome, libgnomeui, GConf }:
stdenv.mkDerivation {
pname = "gtetrinet";
version = "0.7.11";
src = fetchFromGitHub {
owner = "GNOME";
repo = "gtetrinet";
rev = "6be3df83f3dc5c7cb966e6cd447182df01b93222";
sha256 = "1y05x8lfyxvkjg6c87cfd0xxmb22c88scx8fq3gah7hjy5i42v93";
};
nativeBuildInputs = [ autoreconfHook intltool pkg-config ];
buildInputs = [ libgnome libgnomeui ];
propagatedUserEnvPkgs = [ GConf ];
postAutoreconf = ''
intltoolize --force
'';
preInstall = ''
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
'';
postInstall = ''
mv "$out/games" "$out/bin"
'';
enableParallelBuilding = true;
meta = {
description = "Client for Tetrinet, a multiplayer online Tetris game";
mainProgram = "gtetrinet";
longDescription = ''
GTetrinet is a client program for Tetrinet, a multiplayer tetris game
that is played over the internet.
'';
homepage = "https://gtetrinet.sourceforge.net/";
license = lib.licenses.gpl2;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.chris-martin ];
};
}