Files
nixpkgs/pkgs/by-name/em/empserver/package.nix
Gerd Flaig b56c43e431 empserver: init at 4.4.1
Wolfpack Empire is a multi-player, client/server Internet based war
game.  The package builds both the server and the client.

https://github.com/gefla/empserver

Assisted-by: OpenCode (moonshotai/kimi-k3)
2026-08-03 22:53:10 +02:00

69 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
groff,
ncurses,
perl,
readline,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "empserver";
version = "4.4.1";
src = fetchFromGitHub {
owner = "gefla";
repo = "empserver";
tag = "v${finalAttrs.version}";
hash = "sha256-FhU3pkv6v1sqEaFje/lrO4hikH2gfW55e21HlOyl7WA=";
};
nativeBuildInputs = [
autoconf
automake
groff
perl
];
buildInputs = [
ncurses
readline
];
strictDeps = true;
__structuredAttrs = true;
# The git snapshot lacks generated files that upstream's distribution
# tarballs carry and the build requires: sources.mk (list of source
# files), .tarball-version (version without the leading "v" of the
# tag) and its stamp file .dirty-stamp. Create them before running
# ./bootstrap, so its own generated files don't end up in sources.mk.
# .tarball-version must be in place when autoconf runs, sources.mk
# before configure and make.
postUnpack = ''
echo "src := $(find "$sourceRoot" -type f \
! -name sources.mk ! -name .tarball-version ! -name .dirty-stamp \
-printf '%P\n' | sort | tr '\n' ' ')" > "$sourceRoot/sources.mk"
echo "${finalAttrs.version}" > "$sourceRoot/.tarball-version"
touch "$sourceRoot/.dirty-stamp"
'';
preConfigure = ''
./bootstrap
'';
doCheck = true;
meta = {
description = "Multi-player, client/server Internet based war game";
homepage = "https://www.wolfpackempire.com/";
license = lib.licenses.gpl3Plus;
mainProgram = "empire";
maintainers = with lib.maintainers; [ gefla ];
platforms = lib.platforms.unix;
};
})