Merge pull request #312500 from atorres1985-contrib/blockattack
blockattack: 2.8.0 -> 2.9.0
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
{
|
||||
lib,
|
||||
SDL2,
|
||||
SDL2_image,
|
||||
SDL2_mixer,
|
||||
SDL2_ttf,
|
||||
boost,
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
gettext,
|
||||
gitUpdater,
|
||||
ninja,
|
||||
physfs,
|
||||
pkg-config,
|
||||
stdenv,
|
||||
zip,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "blockattack";
|
||||
version = "2.9.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "blockattack";
|
||||
repo = "blockattack-game";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-6mPj6A7mYm4CXkSSemNPn1CPkd7+01yr8KvCBM3a5po=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
SDL2
|
||||
cmake
|
||||
ninja
|
||||
pkg-config
|
||||
gettext
|
||||
zip
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
SDL2
|
||||
SDL2_image
|
||||
SDL2_mixer
|
||||
SDL2_ttf
|
||||
SDL2_ttf
|
||||
boost
|
||||
physfs
|
||||
];
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"man"
|
||||
];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs packdata.sh source/misc/translation/*.sh
|
||||
chmod +x ./packdata.sh
|
||||
./packdata.sh
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gitUpdater { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "https://blockattack.net/";
|
||||
description = "An open source clone of Panel de Pon (aka Tetris Attack)";
|
||||
broken = stdenv.isDarwin;
|
||||
changelog = "https://github.com/blockattack/blockattack-game/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||||
license = with lib.licenses; [ gpl2Plus ];
|
||||
mainProgram = "blockattack";
|
||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
||||
inherit (SDL2.meta) platforms;
|
||||
};
|
||||
})
|
||||
@@ -1,59 +0,0 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, SDL2
|
||||
, SDL2_image
|
||||
, SDL2_mixer
|
||||
, SDL2_ttf
|
||||
, boost
|
||||
, cmake
|
||||
, gettext
|
||||
, physfs
|
||||
, pkg-config
|
||||
, zip
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "blockattack";
|
||||
version = "2.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "blockattack";
|
||||
repo = "blockattack-game";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-2oKesdr2eNZhDlGrFRiH5/8APFkGJfxPCNvzFoIumdQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
gettext
|
||||
zip
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
SDL2
|
||||
SDL2_image
|
||||
SDL2_mixer
|
||||
SDL2_ttf
|
||||
SDL2_ttf
|
||||
boost
|
||||
physfs
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs packdata.sh source/misc/translation/*.sh
|
||||
chmod +x ./packdata.sh
|
||||
./packdata.sh
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://blockattack.net/";
|
||||
description = "An open source clone of Panel de Pon (aka Tetris Attack)";
|
||||
mainProgram = "blockattack";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.isDarwin;
|
||||
};
|
||||
}
|
||||
@@ -36264,8 +36264,6 @@ with pkgs;
|
||||
|
||||
ballerburg = callPackage ../games/ballerburg { } ;
|
||||
|
||||
blockattack = callPackage ../games/blockattack { } ;
|
||||
|
||||
colobot = callPackage ../games/colobot { };
|
||||
|
||||
corsix-th = callPackage ../games/corsix-th { };
|
||||
|
||||
Reference in New Issue
Block a user