diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-05-17 15:16:35 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2024-05-17 15:32:06 -0300 |
commit | 446bb88bb07644bc588dece492b46d5aeb67e573 (patch) | |
tree | b47e6ae786a7fdcaa48bd8f6fca9f78af713e0fa /pkgs/by-name/bl | |
parent | d8bf28208e331f929cd2c5a6d133b26181167bb4 (diff) |
blockattack: migrate to by-name
Diffstat (limited to 'pkgs/by-name/bl')
-rw-r--r-- | pkgs/by-name/bl/blockattack/package.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/by-name/bl/blockattack/package.nix b/pkgs/by-name/bl/blockattack/package.nix new file mode 100644 index 0000000000000..d59b93ae600c6 --- /dev/null +++ b/pkgs/by-name/bl/blockattack/package.nix @@ -0,0 +1,59 @@ +{ 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; + }; +} |