Unverified Commit 3c6423d3 authored by wnklmnn's avatar wnklmnn Committed by GitHub
Browse files

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
parent d6c1f83e
Loading
Loading
Loading
Loading
+20 −5
Original line number Diff line number Diff line
{ 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"