2021-01-17 06:49:22 +01:00
|
|
|
{ fetchFromGitHub, lib, stdenv, autoreconfHook, intltool, pkg-config, libgnome, libgnomeui, GConf }:
|
2017-11-15 05:39:08 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-06-22 23:44:58 +02:00
|
|
|
pname = "gtetrinet";
|
|
|
|
version = "0.7.11";
|
2017-11-15 05:39:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GNOME";
|
|
|
|
repo = "gtetrinet";
|
|
|
|
rev = "6be3df83f3dc5c7cb966e6cd447182df01b93222";
|
|
|
|
sha256 = "1y05x8lfyxvkjg6c87cfd0xxmb22c88scx8fq3gah7hjy5i42v93";
|
|
|
|
};
|
|
|
|
|
2021-01-17 06:49:22 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook intltool pkg-config ];
|
2017-11-15 06:31:31 +01:00
|
|
|
|
|
|
|
buildInputs = [ libgnome libgnomeui ];
|
|
|
|
|
|
|
|
propagatedUserEnvPkgs = [ GConf ];
|
|
|
|
|
|
|
|
postAutoreconf = ''
|
2017-11-15 05:39:08 +01:00
|
|
|
intltoolize --force
|
|
|
|
'';
|
|
|
|
|
2017-11-15 06:31:31 +01:00
|
|
|
preInstall = ''
|
|
|
|
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
|
|
'';
|
|
|
|
|
2017-11-15 05:39:08 +01:00
|
|
|
postInstall = ''
|
|
|
|
mv "$out/games" "$out/bin"
|
|
|
|
'';
|
|
|
|
|
2017-11-15 06:31:31 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-11-15 05:39:08 +01:00
|
|
|
meta = {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Client for Tetrinet, a multiplayer online Tetris game";
|
2017-11-15 05:39:08 +01:00
|
|
|
longDescription = ''
|
|
|
|
GTetrinet is a client program for Tetrinet, a multiplayer tetris game
|
|
|
|
that is played over the internet.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://gtetrinet.sourceforge.net/";
|
2021-01-15 05:31:39 +01:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = [ lib.maintainers.chris-martin ];
|
2017-11-15 05:39:08 +01:00
|
|
|
};
|
|
|
|
}
|