git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #129770 from fgaz/tlk-games/init
commit33d15b9f582057de35553ff7aa3e4f3a01a563a8 authorSandro <sandro.jaeckel@gmail.com> dateSat 10 Jul 2021, 01:00 (5 years ago) parentccae9960851d84
3 files changed+130
pkgs/games/powermanga/default.nix+58 pkgs/games/tecnoballz/default.nix+68 pkgs/top-level/all-packages.nix+4
pkgs/games/powermanga/default.nixnew file+58
@@ -0,0 +1,58 @@
1+{ lib
2+, stdenv
3+, fetchurl
4+, autoconf
5+, automake
6+, SDL
7+, SDL_mixer
8+, libpng
9+}:
10+
11+stdenv.mkDerivation rec {
12+ pname = "powermanga";
13+ version = "0.93.1";
14+
15+ src = fetchurl {
16+ url = "https://linux.tlk.fr/games/Powermanga/download/powermanga-${version}.tgz";
17+ sha256 = "sha256-2nU/zoOQWm2z/Y6mXHDFfWYjYshsQp1saVRBcUT5Q+g=";
18+ };
19+
20+ nativeBuildInputs = [
21+ autoconf
22+ automake
23+ ];
24+
25+ buildInputs = [
26+ SDL
27+ SDL_mixer
28+ libpng
29+ ];
30+
31+ preConfigure = ''
32+ ./bootstrap
33+ '';
34+
35+ installFlags = [
36+ # Default is $(out)/games
37+ "gamesdir=$(out)/bin"
38+ # We set the scoredir to $TMPDIR.
39+ # Otherwise it will try to write in /var/games at install time
40+ "scoredir=$(TMPDIR)"
41+ ];
42+
43+ meta = with lib; {
44+ homepage = "https://linux.tlk.fr/games/Powermanga/";
45+ downloadPage = "https://linux.tlk.fr/games/Powermanga/download/";
46+ description = "An arcade 2D shoot-em-up game";
47+ longDescription = ''
48+ Powermanga is an arcade 2D shoot-em-up game with 41 levels and more than
49+ 200 sprites. It runs in 320x200 or 640x400 pixels, with Window mode or
50+ full screen and support for 8, 15, 16, 24, and 32 bpp. As you go through
51+ the levels, you will destroy enemy spaceships and bosses, collect gems to
52+ power up your ship and get special powers, helpers and weapons.
53+ '';
54+ license = licenses.gpl3Plus;
55+ maintainers = with maintainers; [ fgaz ];
56+ platforms = platforms.all;
57+ };
58+}
pkgs/games/tecnoballz/default.nixnew file+68
@@ -0,0 +1,68 @@
1+{ lib
2+, stdenv
3+, fetchurl
4+, autoconf
5+, automake
6+, SDL
7+, SDL_mixer
8+, SDL_image
9+, libmikmod
10+, tinyxml
11+}:
12+
13+stdenv.mkDerivation rec {
14+ pname = "tecnoballz";
15+ version = "0.93.1";
16+
17+ src = fetchurl {
18+ url = "https://linux.tlk.fr/games/TecnoballZ/download/tecnoballz-${version}.tgz";
19+ sha256 = "sha256-WRW76e+/eXE/KwuyOjzTPFQnKwNznbIrUrz14fnvgug=";
20+ };
21+
22+ nativeBuildInputs = [
23+ autoconf
24+ automake
25+ ];
26+
27+ buildInputs = [
28+ SDL
29+ SDL_mixer
30+ SDL_image
31+ libmikmod
32+ tinyxml
33+ ];
34+
35+ # Newer compilers introduced warnings
36+ postPatch = ''
37+ substituteInPlace configure.ac \
38+ --replace "-Werror" ""
39+ '';
40+
41+ preConfigure = ''
42+ ./bootstrap
43+ '';
44+
45+ installFlags = [
46+ # Default is $(out)/games
47+ "gamesdir=$(out)/bin"
48+ # We set the scoredir to $TMPDIR at install time.
49+ # Otherwise it will try to write in /var/games at install time
50+ "scoredir=$(TMPDIR)"
51+ ];
52+
53+ meta = with lib; {
54+ homepage = "https://linux.tlk.fr/games/TecnoballZ/";
55+ downloadPage = "https://linux.tlk.fr/games/TecnoballZ/download/";
56+ description = "A brick breaker game with a sophisticated system of weapons and bonuses";
57+ longDescription = ''
58+ A exciting Brick Breaker with 50 levels of game and 11 special levels,
59+ distributed on the 2 modes of game to give the player a sophisticated
60+ system of attack weapons with an enormous power of fire that can be build
61+ by gaining bonuses. Numerous decors, musics and sounds complete this great
62+ game. This game was ported from the Commodore Amiga.
63+ '';
64+ license = licenses.gpl3Plus;
65+ maintainers = with maintainers; [ fgaz ];
66+ platforms = platforms.all;
67+ };
68+}
pkgs/top-level/all-packages.nix+4
@@ -29109,6 +29109,8 @@ in
2910929109
2911029110 pokerth-server = libsForQt5.callPackage ../games/pokerth { target = "server"; };
2911129111
29112+ powermanga = callPackage ../games/powermanga { };
29113+
2911229114 prboom = callPackage ../games/prboom { };
2911329115
2911429116 pysolfc = python3Packages.callPackage ../games/pysolfc { };
@@ -29323,6 +29325,8 @@ in
2932329325
2932429326 tbe = libsForQt5.callPackage ../games/the-butterfly-effect { };
2932529327
29328+ tecnoballz = callPackage ../games/tecnoballz { };
29329+
2932629330 teetertorture = callPackage ../games/teetertorture { };
2932729331
2932829332 teeworlds = callPackage ../games/teeworlds { };