nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

wnklmnn and committed by
GitHub
3c6423d3 d6c1f83e

+20 -5
+20 -5
pkgs/games/crossfire/crossfire-server.nix
··· 1 - { stdenv, lib, fetchsvn, autoreconfHook, 2 - autoconf, automake, libtool, flex, perl, check, pkg-config, python3, 3 - version, rev, sha256, maps, arch }: 1 + { stdenv 2 + , lib 3 + , fetchsvn 4 + , autoreconfHook 5 + , autoconf 6 + , automake 7 + , libtool 8 + , flex 9 + , perl 10 + , check 11 + , pkg-config 12 + , python39 # crossfire-server relies on a parser wich was removed in python >3.9 13 + , version 14 + , rev 15 + , sha256 16 + , maps 17 + , arch 18 + }: 4 19 5 20 stdenv.mkDerivation rec { 6 21 pname = "crossfire-server"; ··· 27 12 rev = "r${rev}"; 28 13 }; 29 14 30 - nativeBuildInputs = [ autoconf automake libtool flex perl check pkg-config python3 ]; 15 + nativeBuildInputs = [ autoconf automake libtool flex perl check pkg-config python39 ]; 31 16 hardeningDisable = [ "format" ]; 32 17 33 18 preConfigure = '' ··· 36 21 sh autogen.sh 37 22 ''; 38 23 39 - configureFlags = [ "--with-python=${python3}" ]; 24 + configureFlags = [ "--with-python=${python39}" ]; 40 25 41 26 postInstall = '' 42 27 ln -s ${maps} "$out/share/crossfire/maps"