3
0
Fork 0
forked from mirrors/nixpkgs

crossfire-server: Use python39 instead of python3 (#232282)

Apperently the parser used by crossfire was remove in python 3.10.

https://bugs.python.org/issue40939
This commit is contained in:
wnklmnn 2023-05-19 02:33:35 +02:00 committed by GitHub
parent d6c1f83e99
commit 3c6423d321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,21 @@
{ stdenv, lib, fetchsvn, autoreconfHook,
autoconf, automake, libtool, flex, perl, check, pkg-config, python3,
version, rev, sha256, maps, arch }:
{ stdenv
, lib
, fetchsvn
, autoreconfHook
, autoconf
, automake
, libtool
, flex
, perl
, check
, pkg-config
, python39 # crossfire-server relies on a parser wich was removed in python >3.9
, version
, rev
, sha256
, maps
, arch
}:
stdenv.mkDerivation rec {
pname = "crossfire-server";
@ -12,7 +27,7 @@ stdenv.mkDerivation rec {
rev = "r${rev}";
};
nativeBuildInputs = [ autoconf automake libtool flex perl check pkg-config python3 ];
nativeBuildInputs = [ autoconf automake libtool flex perl check pkg-config python39 ];
hardeningDisable = [ "format" ];
preConfigure = ''
@ -21,7 +36,7 @@ stdenv.mkDerivation rec {
sh autogen.sh
'';
configureFlags = [ "--with-python=${python3}" ];
configureFlags = [ "--with-python=${python39}" ];
postInstall = ''
ln -s ${maps} "$out/share/crossfire/maps"