File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 55 fetchurl ,
66 unzip ,
77 gdc ,
8+ libGL ,
9+ libGLU ,
810 SDL ,
911 SDL_mixer ,
1012 bulletml ,
1618 fetchpatch {
1719 name = "${ patchname } .patch" ;
1820 url = "https://sources.debian.org/data/main/t/titanion/0.3.dfsg1-7/debian/patches/${ patchname } " ;
19- sha256 = hash ;
21+ inherit hash ;
2022 } ;
2123
2224in
@@ -28,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
2830 url = "http://abagames.sakura.ne.jp/windows/ttn${
2931 lib . replaceStrings [ "." ] [ "_" ] finalAttrs . version
3032 } .zip" ;
31- sha256 = "sha256-fR0cufi6dU898wP8KGl/vxbfQJzMmMxlYZ3QNGLajfM=" ;
33+ hash = "sha256-fR0cufi6dU898wP8KGl/vxbfQJzMmMxlYZ3QNGLajfM=" ;
3234 } ;
3335
3436 patches = [
@@ -58,23 +60,27 @@ stdenv.mkDerivation (finalAttrs: {
5860 ] ;
5961
6062 buildInputs = [
63+ libGL
64+ libGLU
6165 SDL
6266 SDL_mixer
6367 bulletml
6468 ] ;
6569
6670 installPhase = ''
71+ runHook preInstall
6772 install -Dm755 titanion $out/bin/titanion
6873 mkdir -p $out/share/games/titanion
6974 cp -r sounds images $out/share/games/titanion/
75+ runHook postInstall
7076 '' ;
7177
72- meta = with lib ; {
78+ meta = {
7379 homepage = "http://www.asahi-net.or.jp/~cs8k-cyu/windows/ttn_e.html" ;
7480 description = "Strike down super high-velocity swooping insects" ;
7581 mainProgram = "titanion" ;
76- license = licenses . bsd2 ;
77- maintainers = with maintainers ; [ fgaz ] ;
78- platforms = platforms . all ;
82+ license = lib . licenses . bsd2 ;
83+ maintainers = with lib . maintainers ; [ fgaz ] ;
84+ platforms = lib . platforms . all ;
7985 } ;
8086} )
You can’t perform that action at this time.
0 commit comments