Files
nixpkgs/pkgs/by-name/cr/crossfire-server/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.2 KiB
Nix

{
stdenv,
lib,
pkgs,
fetchgit,
autoconf,
automake,
libtool,
flex,
perl,
check,
pkg-config,
python3,
# Included here so that hosts using custom maps/archetypes can easily override.
maps ? pkgs.crossfire-maps,
arch ? pkgs.crossfire-arch,
}:
stdenv.mkDerivation {
pname = "crossfire-server";
version = "2025-04";
src = fetchgit {
url = "https://git.code.sf.net/p/crossfire/crossfire-server";
rev = "5f742b9f9f785e4a59a3a463bee1f31c9bc67098";
hash = "sha256-e7e3xN7B1cv9+WkZGzOJgrFer50Cs0L/2dYB9RmGCiE=";
};
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 ];
};
}