From 0db05edd090647e244ab28688b804f437bfe0fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Tue, 13 Sep 2022 06:25:06 +0900 Subject: [PATCH] hedgewars: 1.0.0 -> 1.0.2 --- pkgs/games/hedgewars/default.nix | 33 +++----------------------------- pkgs/games/hedgewars/qt515.patch | 10 ---------- 2 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 pkgs/games/hedgewars/qt515.patch diff --git a/pkgs/games/hedgewars/default.nix b/pkgs/games/hedgewars/default.nix index 9d23b94f6c66..04bed46f8b6e 100644 --- a/pkgs/games/hedgewars/default.nix +++ b/pkgs/games/hedgewars/default.nix @@ -7,20 +7,18 @@ }: let - # gameServer/hedgewars-server.cabal depends on network < 3 ghc = ghcWithPackages (pkgs: with pkgs; [ - SHA bytestring entropy hslogger network_2_6_3_1 pkgs.zlib random + SHA bytestring entropy hslogger network pkgs.zlib random regex-tdfa sandi utf8-string vector ]); - in stdenv.mkDerivation rec { pname = "hedgewars"; - version = "1.0.0"; + version = "1.0.2"; src = fetchurl { url = "https://www.hedgewars.org/download/releases/hedgewars-src-${version}.tar.bz2"; - sha256 = "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"; + sha256 = "sha256-IB/l5FvYyls9gbGOwGvWu8n6fCxjvwGQBeL4C+W88hI="; }; nativeBuildInputs = [ cmake pkg-config qttools wrapQtAppsHook ]; @@ -33,33 +31,11 @@ stdenv.mkDerivation rec { qtbase ] ++ lib.optional withServer ghc; - patches = [ - ./qt515.patch - ]; - - 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 = [ "-DNOVERSIONINFOUPDATE=ON" "-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 @@ -107,8 +83,5 @@ stdenv.mkDerivation rec { all movement on the battlefield has ceased).''; maintainers = with maintainers; [ kragniz fpletz ]; inherit (fpc.meta) platforms; - # https://github.com/NixOS/nixpkgs/pull/185755#issuecomment-1219024584 - broken = true; - hydraPlatforms = platforms.none; }; } diff --git a/pkgs/games/hedgewars/qt515.patch b/pkgs/games/hedgewars/qt515.patch deleted file mode 100644 index a8dc9907f405..000000000000 --- a/pkgs/games/hedgewars/qt515.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/QTfrontend/ui/page/pagegamestats.cpp -+++ b/QTfrontend/ui/page/pagegamestats.cpp -@@ -22,6 +22,7 @@ - #include - #include - #include -+#include - - #include "pagegamestats.h" - #include "team.h"