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
32
pkgs/games/racer/default.nix
Normal file
32
pkgs/games/racer/default.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ fetchurl, lib, stdenv, allegro, libjpeg, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "racer";
|
||||
version = "1.1";
|
||||
|
||||
src = if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
|
||||
url = "http://hippo.nipax.cz/src/racer-${version}.tar.gz";
|
||||
sha256 = "0fll1qkqfcjq87k0jzsilcw701z92lfxn2y5ga1n038772lymxl9";
|
||||
} else if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
|
||||
url = "https://hippo.nipax.cz/src/racer-${version}.64.tar.gz";
|
||||
sha256 = "0rjy3gmlhwfkb9zs58j0mc0dar0livwpbc19r6zw5r2k6r7xdan0";
|
||||
} else
|
||||
throw "System not supported";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ allegro libjpeg ];
|
||||
|
||||
prePatch = ''
|
||||
sed -i s,/usr/local,$out, Makefile src/HGFX.cpp src/STDH.cpp
|
||||
sed -i s,/usr/share,$out/share, src/HGFX.cpp src/STDH.cpp
|
||||
'';
|
||||
|
||||
patches = [ ./mkdir.patch ];
|
||||
|
||||
meta = {
|
||||
description = "Car racing game";
|
||||
homepage = "http://hippo.nipax.cz/download.en.php";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
13
pkgs/games/racer/mkdir.patch
Normal file
13
pkgs/games/racer/mkdir.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/STDH.cpp b/src/STDH.cpp
|
||||
index 5f78473..47c3f8b 100644
|
||||
--- a/src/STDH.cpp
|
||||
+++ b/src/STDH.cpp
|
||||
@@ -5,6 +5,8 @@
|
||||
#include "player.h"
|
||||
#include "drivers.h"
|
||||
#include "cup.h"
|
||||
+#include <sys/stat.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
HScreen hscreen;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue