fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ fetchurl, lib, stdenv, allegro, libjpeg, makeWrapper }:
2
3stdenv.mkDerivation rec {
4 pname = "racer";
5 version = "1.1";
6
7 src = if stdenv.hostPlatform.system == "i686-linux" then fetchurl {
8 url = "http://hippo.nipax.cz/src/racer-${version}.tar.gz";
9 sha256 = "0fll1qkqfcjq87k0jzsilcw701z92lfxn2y5ga1n038772lymxl9";
10 } else if stdenv.hostPlatform.system == "x86_64-linux" then fetchurl {
11 url = "https://hippo.nipax.cz/src/racer-${version}.64.tar.gz";
12 sha256 = "0rjy3gmlhwfkb9zs58j0mc0dar0livwpbc19r6zw5r2k6r7xdan0";
13 } else
14 throw "System not supported";
15
16 nativeBuildInputs = [ makeWrapper ];
17 buildInputs = [ allegro libjpeg ];
18
19 prePatch = ''
20 sed -i s,/usr/local,$out, Makefile src/HGFX.cpp src/STDH.cpp
21 sed -i s,/usr/share,$out/share, src/HGFX.cpp src/STDH.cpp
22 '';
23
24 patches = [ ./mkdir.patch ];
25
26 meta = {
27 description = "Car racing game";
28 homepage = "http://hippo.nipax.cz/download.en.php";
29 license = lib.licenses.gpl2Plus;
30 platforms = lib.platforms.linux;
31 };
32}