at 24.05-pre 58 lines 1.0 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, SDL2 5, SDL2_image 6, SDL2_mixer 7, SDL2_ttf 8, boost 9, cmake 10, gettext 11, physfs 12, pkg-config 13, zip 14}: 15 16stdenv.mkDerivation rec { 17 pname = "blockattack"; 18 version = "2.8.0"; 19 20 src = fetchFromGitHub { 21 owner = "blockattack"; 22 repo = "blockattack-game"; 23 rev = "v${version}"; 24 hash = "sha256-2oKesdr2eNZhDlGrFRiH5/8APFkGJfxPCNvzFoIumdQ="; 25 }; 26 27 nativeBuildInputs = [ 28 cmake 29 pkg-config 30 gettext 31 zip 32 ]; 33 34 buildInputs = [ 35 SDL2 36 SDL2_image 37 SDL2_mixer 38 SDL2_ttf 39 SDL2_ttf 40 boost 41 physfs 42 ]; 43 44 preConfigure = '' 45 patchShebangs packdata.sh source/misc/translation/*.sh 46 chmod +x ./packdata.sh 47 ./packdata.sh 48 ''; 49 50 meta = with lib; { 51 homepage = "https://blockattack.net/"; 52 description = "An open source clone of Panel de Pon (aka Tetris Attack)"; 53 license = licenses.gpl2Plus; 54 maintainers = with maintainers; [ AndersonTorres ]; 55 platforms = platforms.unix; 56 broken = stdenv.isDarwin; 57 }; 58}