summary refs log tree commit diff
path: root/pkgs/games/hedgewars
diff options
context:
space:
mode:
authorRicardo Ardissone <ricardo.ardissone@gmail.com>2020-05-06 01:09:54 -0300
committerRicardo Ardissone <ricardo.ardissone@gmail.com>2020-05-06 01:14:06 -0300
commitae77b8f42db25c783dc0434f20f8455e67cfcbc2 (patch)
tree9897f777d1f699fb0f24031a10b038327f387900 /pkgs/games/hedgewars
parent834eb1729b396fefa2af3d08406c82e2fc72ec6f (diff)
downloadnixpkgs-ae77b8f42db25c783dc0434f20f8455e67cfcbc2.tar
nixpkgs-ae77b8f42db25c783dc0434f20f8455e67cfcbc2.tar.gz
nixpkgs-ae77b8f42db25c783dc0434f20f8455e67cfcbc2.tar.bz2
nixpkgs-ae77b8f42db25c783dc0434f20f8455e67cfcbc2.tar.lz
nixpkgs-ae77b8f42db25c783dc0434f20f8455e67cfcbc2.tar.xz
nixpkgs-ae77b8f42db25c783dc0434f20f8455e67cfcbc2.tar.zst
nixpkgs-ae77b8f42db25c783dc0434f20f8455e67cfcbc2.zip
hedgewars: use haskellPackages.network_2_6_3_1
gameServer/hedgewars-server.cabal indicates network version needs
to be < 3.0.
Diffstat (limited to 'pkgs/games/hedgewars')
-rw-r--r--pkgs/games/hedgewars/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/games/hedgewars/default.nix b/pkgs/games/hedgewars/default.nix
index dffeb2ac556..771554192d8 100644
--- a/pkgs/games/hedgewars/default.nix
+++ b/pkgs/games/hedgewars/default.nix
@@ -6,8 +6,9 @@
 }:
 
 let
+  # gameServer/hedgewars-server.cabal depends on network < 3
   ghc = ghcWithPackages (pkgs: with pkgs; [
-          SHA bytestring entropy hslogger network pkgs.zlib random
+          SHA bytestring entropy hslogger network_2_6_3_1 pkgs.zlib random
           regex-tdfa sandi utf8-string vector
         ]);
 
@@ -40,6 +41,15 @@ mkDerivation rec {
     "-DNOSERVER=${if withServer then "OFF" else "ON"}"
   ];
 
+
+  # hslogger brings network-3 and network-bsd which conflict with 
+  # network-2.6.3.1
+  preConfigure = ''
+    substituteInPlace gameServer/CMakeLists.txt \
+      --replace "haskell_flags}" \
+        "haskell_flags} -package network-2.6.3.1 -hide-package network-bsd"
+  '';
+
   NIX_LDFLAGS = lib.concatMapStringsSep " " (e: "-rpath ${e}/lib") [
     SDL2.out
     SDL2_image