30 ghc = haskell.packages.ghc94.ghcWithPackages (
46 stdenv.mkDerivation rec {
51 url = "https://www.hedgewars.org/download/releases/hedgewars-src-${version}.tar.bz2";
52 sha256 = "sha256-IB/l5FvYyls9gbGOwGvWu8n6fCxjvwGQBeL4C+W88hI=";
56 # Add support for ffmpeg 6.0
57 # https://github.com/hedgewars/hw/pull/74
58 ./support-ffmpeg-6.patch
76 llvm # hard-requirement on aarch64, for some reason not strictly necessary on x86-64
81 ] ++ lib.optional withServer ghc;
84 "-DNOVERSIONINFOUPDATE=ON"
85 "-DNOSERVER=${if withServer then "OFF" else "ON"}"
88 NIX_LDFLAGS = lib.concatMapStringsSep " " (e: "-rpath ${e}/lib") [
103 "--prefix LD_LIBRARY_PATH : ${
104 lib.makeLibraryPath [
114 description = "Turn-based strategy artillery game similar to Worms";
115 homepage = "https://hedgewars.org/";
116 license = licenses.gpl2Plus;
118 Each player controls a team of several hedgehogs. During the course of
119 the game, players take turns with one of their hedgehogs. They then use
120 whatever tools and weapons are available to attack and kill the
121 opponents' hedgehogs, thereby winning the game. Hedgehogs may move
122 around the terrain in a variety of ways, normally by walking and jumping
123 but also by using particular tools such as the "Rope" or "Parachute", to
124 move to otherwise inaccessible areas. Each turn is time-limited to
125 ensure that players do not hold up the game with excessive thinking or
128 A large variety of tools and weapons are available for players during
129 the game: Grenade, Cluster Bomb, Bazooka, UFO, Homing Bee, Shotgun,
130 Desert Eagle, Fire Punch, Baseball Bat, Dynamite, Mine, Rope, Pneumatic
131 pick, Parachute. Most weapons, when used, cause explosions that deform
132 the terrain, removing circular chunks. The landscape is an island
133 floating on a body of water, or a restricted cave with water at the
134 bottom. A hedgehog dies when it enters the water (either by falling off
135 the island, or through a hole in the bottom of it), it is thrown off
136 either side of the arena or when its health is reduced, typically from
137 contact with explosions, to zero (the damage dealt to the attacked
138 hedgehog or hedgehogs after a player's or CPU turn is shown only when
139 all movement on the battlefield has ceased).'';
140 maintainers = with maintainers; [
144 broken = stdenv.hostPlatform.isDarwin;
145 platforms = platforms.linux;