summary refs log tree commit diff
path: root/pkgs/games/hedgewars
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2020-09-03 12:49:11 +0200
committerTimo Kaufmann <timokau@zoho.com>2020-09-03 14:52:18 +0200
commitf928b91f349403090d055a613abc527bb442254e (patch)
tree5441b118d7369c63139bf551a8645afe57dd22d5 /pkgs/games/hedgewars
parent596de92ca7458e47b991472e3da59d30baf8d9c5 (diff)
fpc: 3.0.4 -> 3.2.0
There was no 3.1 for some reason. The old sed-based path patching was
broken and resulted in syntax errors since it was a bit over-eager.
Instead of fixing it, I decided to replace it with a patch file which is
easier to inspect and will fail in a more obvious way next time.

The patch is now applied unconditionally, since it actually applies to
all linux platforms. The changes are localized to linux-specific code,
so it does not hurt to apply it on non-linux platforms as well.

Hedgewars needs a small fix to work with the new version. Done in the
same commit to avoid a broken commit.
Diffstat (limited to 'pkgs/games/hedgewars')
-rw-r--r--pkgs/games/hedgewars/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/games/hedgewars/default.nix b/pkgs/games/hedgewars/default.nix
index 00df6f338210d..adc6506c61578 100644
--- a/pkgs/games/hedgewars/default.nix
+++ b/pkgs/games/hedgewars/default.nix
@@ -34,6 +34,10 @@ mkDerivation rec {
   postPatch = ''
     substituteInPlace gameServer/CMakeLists.txt \
       --replace mask evaluate
+
+    # compile with fpc >= 3.2.0
+    # https://github.com/archlinux/svntogit-community/blob/75a1b3900fb3dd553d5114bbc8474d85fd6abb02/trunk/PKGBUILD#L26
+    sed -i 's/procedure ShiftWorld(Dir: LongInt); inline;/procedure ShiftWorld(Dir: LongInt);/' hedgewars/uWorld.pas
   '';
 
   cmakeFlags = [
@@ -42,7 +46,7 @@ mkDerivation rec {
   ];
 
 
-  # hslogger brings network-3 and network-bsd which conflict with 
+  # hslogger brings network-3 and network-bsd which conflict with
   # network-2.6.3.1
   preConfigure = ''
     substituteInPlace gameServer/CMakeLists.txt \