crossfire-server: init at r22111

This adds the Crossfire server package and the corresponding data packages
(maps and archetypes).

Note that this tracks a recent SVN commit; the latest official release is
many years old and no longer widely used (or supported).
This commit is contained in:
B. Kelly 2019-08-02 19:16:16 -04:00 committed by Rebecca Kelly
parent 308c004ace
commit 5e65827139
5 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ stdenv, lib, fetchsvn,
version, rev, sha256 }:
stdenv.mkDerivation rec {
pname = "crossfire-arch";
version = "r${toString rev}";
src = fetchsvn {
url = "http://svn.code.sf.net/p/crossfire/code/arch/trunk/";
sha256 = sha256;
rev = rev;
};
installPhase = ''
mkdir -p "$out"
cp -a . "$out/"
'';
meta = with lib; {
description = "Archetype data for the Crossfire free MMORPG";
homepage = "http://crossfire.real-time.com/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
hydraPlatforms = [];
maintainers = with maintainers; [ ToxicFrog ];
};
}

View file

@ -0,0 +1,27 @@
{ stdenv, lib, fetchsvn,
version, rev, sha256 }:
stdenv.mkDerivation rec {
pname = "crossfire-maps";
version = "r${toString rev}";
src = fetchsvn {
url = "http://svn.code.sf.net/p/crossfire/code/maps/trunk/";
sha256 = sha256;
rev = rev;
};
installPhase = ''
mkdir -p "$out"
cp -a . "$out/"
'';
meta = with lib; {
description = "Map data for the Crossfire free MMORPG";
homepage = "http://crossfire.real-time.com/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
hydraPlatforms = [];
maintainers = with maintainers; [ ToxicFrog ];
};
}

View file

@ -0,0 +1,37 @@
{ stdenv, lib, fetchsvn, autoreconfHook,
autoconf, automake, libtool, flex, perl, check, pkg-config, python3,
version, rev, sha256, maps, arch }:
stdenv.mkDerivation rec {
pname = "crossfire-server";
version = "r${toString rev}";
src = fetchsvn {
url = "http://svn.code.sf.net/p/crossfire/code/server/trunk/";
sha256 = sha256;
rev = rev;
};
nativeBuildInputs = [ autoconf automake libtool flex perl check pkg-config python3 ];
hardeningDisable = [ "format" ];
preConfigure = ''
ln -s ${arch} lib/arch
ln -s ${maps} lib/maps
sh autogen.sh
'';
configureFlags = [ "--with-python=${python3}" ];
postInstall = ''
ln -s ${maps} "$out/share/crossfire/maps"
'';
meta = with lib; {
description = "Server for the Crossfire free MMORPG";
homepage = "http://crossfire.real-time.com/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ ToxicFrog ];
};
}

View file

@ -0,0 +1,22 @@
{ callPackage, ... }:
rec {
crossfire-server = callPackage ./crossfire-server.nix {
version = "latest";
rev = 22111;
sha256 = "04fjif6zv642n2zlw27cgzkak2kknwrxqzg42bvzl7q901bsr9l7";
maps = crossfire-maps; arch = crossfire-arch;
};
crossfire-arch = callPackage ./crossfire-arch.nix {
version = "latest";
rev = 22111;
sha256 = "0l4rp3idvbhknpxxs0w4i4nqfg01wblzm4v4j375xwxxbf00j0ms";
};
crossfire-maps = callPackage ./crossfire-maps.nix {
version = "latest";
rev = 22111;
sha256 = "1dwfc84acjvbjgjakkb8z8pdlksbsn90j0z8z8rq37lqx0kx1sap";
};
}

View file

@ -29096,6 +29096,9 @@ in
crawl = callPackage ../games/crawl { };
inherit (import ../games/crossfire pkgs)
crossfire-server crossfire-arch crossfire-maps;
crrcsim = callPackage ../games/crrcsim {};
curseofwar = callPackage ../games/curseofwar { SDL = null; };