Adding the rally game Trigger. As a side effect, I add jam.
svn path=/nixpkgs/trunk/; revision=26615
This commit is contained in:
parent
11472a0501
commit
48748dedcb
20
pkgs/development/tools/build-managers/jam/default.nix
Normal file
20
pkgs/development/tools/build-managers/jam/default.nix
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "jam-2.5";
|
||||||
|
src = fetchurl {
|
||||||
|
url = ftp://ftp.perforce.com/jam/jam-2.5.tar;
|
||||||
|
sha256 = "04c6khd7gdkqkvx4h3nbz99lyz7waid4fd221hq5chcygyx1sj3i";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
ensureDir $out/bin
|
||||||
|
cp bin.linux/jam $out/bin
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://public.perforce.com/wiki/Jam;
|
||||||
|
license = "free";
|
||||||
|
description = "Just Another Make";
|
||||||
|
};
|
||||||
|
}
|
43
pkgs/games/trigger/default.nix
Normal file
43
pkgs/games/trigger/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ fetchurl, stdenv, SDL, freealut, SDL_image, openal, physfs, zlib, mesa, jam }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "trigger-0.5.2.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/trigger-rally/${name}-src.tar.bz2";
|
||||||
|
sha256 = "17sbw6j2z62w047fb8vlkabhq7s512r3a4pjd6402lpq09mpywhg";
|
||||||
|
};
|
||||||
|
|
||||||
|
srcData = fetchurl {
|
||||||
|
url = "mirror://sourceforge/trigger-rally/trigger-0.5.2-data.tar.bz2";
|
||||||
|
sha256 = "0sxfpn2vqzgv1dm66j75bmfc1kmnwrv1bb1yazmm803nnngk6zy9";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ SDL freealut SDL_image openal physfs zlib mesa jam ];
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
configureFlags="$configureFlags --datadir=$out/share/trigger-0.5.2-data"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# It has some problems installing the README file, so... out.
|
||||||
|
patchPhase = ''
|
||||||
|
sed -i /README/d Jamfile
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = "jam";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
jam install
|
||||||
|
ensureDir $out/share
|
||||||
|
pushd $out/share
|
||||||
|
tar xf $srcData
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Rally";
|
||||||
|
homepage = http://trigger-rally.sourceforge.net/;
|
||||||
|
license = "GPLv2";
|
||||||
|
maintainers = with stdenv.lib.maintainers; [viric];
|
||||||
|
platforms = with stdenv.lib.platforms; linux;
|
||||||
|
};
|
||||||
|
}
|
@ -2605,6 +2605,8 @@ let
|
|||||||
|
|
||||||
ired = callPackage ../development/tools/analysis/radare/ired.nix { };
|
ired = callPackage ../development/tools/analysis/radare/ired.nix { };
|
||||||
|
|
||||||
|
jam = callPackage ../development/tools/build-managers/jam { };
|
||||||
|
|
||||||
jikespg = callPackage ../development/tools/parsing/jikespg { };
|
jikespg = callPackage ../development/tools/parsing/jikespg { };
|
||||||
|
|
||||||
lcov = callPackage ../development/tools/analysis/lcov { };
|
lcov = callPackage ../development/tools/analysis/lcov { };
|
||||||
@ -7195,6 +7197,8 @@ let
|
|||||||
plib = plib.override { enablePIC = if stdenv.isi686 then false else true; };
|
plib = plib.override { enablePIC = if stdenv.isi686 then false else true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
trigger = callPackage ../games/trigger { };
|
||||||
|
|
||||||
ufoai = callPackage ../games/ufoai {
|
ufoai = callPackage ../games/ufoai {
|
||||||
inherit (gnome) gtksourceview gtkglext;
|
inherit (gnome) gtksourceview gtkglext;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user