From 069535c503c194f48af81420cb176784903f1d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Fri, 24 Feb 2017 01:46:30 +0100 Subject: [PATCH] crack-attack: enable sound support in the crack-attack game. The --enable-sound ./configure option enables the sound support in crack-attack. This commit enables the --enable-sound option, and adds a dependency on SDL_mixer. The following files still have to be supplied by the user, due to licencing issues upstream: ~/.crack-attack/music/game.ogg ~/.crack-attack/music/gameover.ogg ~/.crack-attack/music/prelude.ogg ~/.crack-attack/music/youwin.ogg ~/.crack-attack/sounds/block_awaking.wav ~/.crack-attack/sounds/block_dying.wav ~/.crack-attack/sounds/block_fallen.wav ~/.crack-attack/sounds/countdown.wav ~/.crack-attack/sounds/garbage_fallen.wav ~/.crack-attack/sounds/garbage_shattering.wav The crack-attack game will detect when these sound files are present, and use them as background music and sound effects. --- pkgs/games/crack-attack/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/games/crack-attack/default.nix b/pkgs/games/crack-attack/default.nix index 3fceb796dde..ebcb0e6aa15 100644 --- a/pkgs/games/crack-attack/default.nix +++ b/pkgs/games/crack-attack/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchurl, pkgconfig, gtk2, freeglut, SDL, mesa, libXi, libXmu}: +{ stdenv, fetchurl, autoreconfHook, pkgconfig, gtk2, freeglut, SDL, SDL_mixer +, mesa, libXi, libXmu}: stdenv.mkDerivation { name = "crack-attack-1.1.14"; @@ -8,9 +9,9 @@ stdenv.mkDerivation { sha256 = "1sakj9a2q05brpd7lkqxi8q30bccycdzd96ns00s6jbxrzjlijkm"; }; - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ gtk2 freeglut SDL mesa libXi libXmu ]; - + nativeBuildInputs = [ autoreconfHook pkgconfig ]; + buildInputs = [ gtk2 freeglut SDL SDL_mixer mesa libXi libXmu ]; + configureFlags = [ "--enable-sound=yes" ]; hardeningDisable = [ "format" ]; meta = {