uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/games/ball-and-paddle/default.nix
Normal file
45
pkgs/games/ball-and-paddle/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ fetchurl, lib, stdenv, SDL, SDL_image, SDL_mixer, SDL_ttf, guile, gettext }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ballandpaddle";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnu/ballandpaddle/ballandpaddle-${version}.tar.gz";
|
||||
sha256 = "0zgpydad0mj7fbkippw3n9hlda6nac084dq5xfbsks9jn1xd30ny";
|
||||
};
|
||||
|
||||
buildInputs = [ SDL SDL_image SDL_mixer SDL_ttf guile gettext ];
|
||||
|
||||
patches = [ ./getenv-decl.patch ];
|
||||
|
||||
preConfigure = ''
|
||||
sed -i "Makefile.in" \
|
||||
-e "s|desktopdir *=.*$|desktopdir = $out/share/applications|g ;
|
||||
s|pixmapsdir *=.*$|pixmapsdir = $out/share/pixmaps|g"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "GNU Ball and Paddle, an old-fashioned ball and paddle game";
|
||||
|
||||
longDescription = ''
|
||||
GNU Ball and Paddle is an old-fashioned ball and paddle game
|
||||
with a set amount of blocks to destroy on each level, while
|
||||
moving a paddle left and right at the bottom of the
|
||||
screen. Various powerups may make different things occur.
|
||||
|
||||
It now uses GNU Guile for extension and the levels are written
|
||||
with Guile. Follow the example level sets and the documentation.
|
||||
'';
|
||||
|
||||
license = lib.licenses.gpl3Plus;
|
||||
|
||||
homepage = "https://www.gnu.org/software/ballandpaddle/";
|
||||
|
||||
maintainers = [ ];
|
||||
|
||||
platforms = lib.platforms.unix;
|
||||
|
||||
hydraPlatforms = lib.platforms.linux; # sdl-config times out on darwin
|
||||
};
|
||||
}
|
||||
13
pkgs/games/ball-and-paddle/getenv-decl.patch
Normal file
13
pkgs/games/ball-and-paddle/getenv-decl.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
Make the getenv(3) declaration visible.
|
||||
|
||||
--- ballandpaddle-0.8.1/src/settingsmanager.cpp 2009-07-08 02:13:16.000000000 +0200
|
||||
+++ ballandpaddle-0.8.1/src/settingsmanager.cpp 2009-07-16 23:30:28.000000000 +0200
|
||||
@@ -17,6 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
**/
|
||||
|
||||
+#include <stdlib.h>
|
||||
#include "settingsmanager.h"
|
||||
|
||||
SettingsManager::SettingsManager ()
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue