Merge pull request #108884 from iblech/patch-blobwars

blobwars: init at 2.00
This commit is contained in:
Sandro 2021-02-17 11:18:22 +01:00 committed by GitHub
commit 3329658276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ 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";
};
nativeBuildInputs = [ pkg-config gettext ];
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_net SDL2_ttf zlib ];
NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
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";
homepage = "https://www.parallelrealities.co.uk/games/metalBlobSolid/";
license = with licenses; [ gpl2Plus free ];
maintainers = with maintainers; [ iblech ];
platforms = platforms.unix;
};
}

View file

@ -26535,6 +26535,8 @@ in
blobby = callPackage ../games/blobby { };
blobwars = callPackage ../games/blobwars { };
boohu = callPackage ../games/boohu { };
braincurses = callPackage ../games/braincurses { };