1 { stdenv, lib, fetchurl, pkg-config, gettext, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf, zlib }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
9 sha256 = "c406279f6cdf2aed3c6edb8d8be16efeda0217494acd525f39ee2bd3e77e4a99";
12 patches = [ ./blobwars-2.00-glibc-2.38.patch ];
14 nativeBuildInputs = [ pkg-config gettext ];
15 buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf zlib ];
16 env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error" ];
18 makeFlags = [ "PREFIX=$(out)" "RELEASE=1" ];
21 install -Dm755 $out/games/blobwars -t $out/bin
23 cp -r {data,gfx,sound,music} $out/share/games/blobwars/
24 # fix world readable bit
25 find $out/share/games/blobwars/. -type d -exec chmod 755 {} +
26 find $out/share/games/blobwars/. -type f -exec chmod 644 {} +
30 description = "Platform action game featuring a blob with lots of weapons";
31 mainProgram = "blobwars";
32 homepage = "https://www.parallelrealities.co.uk/games/metalBlobSolid/";
33 license = with licenses; [ gpl2Plus free ];
34 maintainers = with maintainers; [ iblech ];
35 platforms = platforms.unix;