2021-01-09 20:22:18 +00:00
|
|
|
{ stdenv, lib, fetchurl, pkg-config, gettext, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "blobwars";
|
|
|
|
version = "2.00";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "c406279f6cdf2aed3c6edb8d8be16efeda0217494acd525f39ee2bd3e77e4a99";
|
|
|
|
};
|
|
|
|
|
2023-10-10 14:58:54 +00:00
|
|
|
patches = [ ./blobwars-2.00-glibc-2.38.patch ];
|
|
|
|
|
2021-01-09 20:22:18 +00:00
|
|
|
nativeBuildInputs = [ pkg-config gettext ];
|
|
|
|
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf zlib ];
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-Wno-error" ];
|
2021-01-09 20:22:18 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "RELEASE=1" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm755 $out/games/blobwars -t $out/bin
|
|
|
|
rm -r $out/games
|
|
|
|
cp -r {data,gfx,sound,music} $out/share/games/blobwars/
|
|
|
|
# fix world readable bit
|
|
|
|
find $out/share/games/blobwars/. -type d -exec chmod 755 {} +
|
|
|
|
find $out/share/games/blobwars/. -type f -exec chmod 644 {} +
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Platform action game featuring a blob with lots of weapons";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "blobwars";
|
2021-01-09 20:22:18 +00:00
|
|
|
homepage = "https://www.parallelrealities.co.uk/games/metalBlobSolid/";
|
|
|
|
license = with licenses; [ gpl2Plus free ];
|
|
|
|
maintainers = with maintainers; [ iblech ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|