2011-04-09 18:57:00 +00:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, freeglut, freealut, mesa, libICE, libjpeg, openal, openscenegraph, plib
|
|
|
|
, libSM, libunwind, libX11, xproto, libXext, xextproto, libXi, inputproto
|
2013-02-23 19:32:12 +00:00
|
|
|
, libXmu, libXt, simgear, zlib, boost, cmake, libpng
|
2011-04-09 18:57:00 +00:00
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
2013-02-23 19:32:12 +00:00
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
2011-04-09 18:57:00 +00:00
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
2013-02-23 19:32:12 +00:00
|
|
|
baseName="flightgear";
|
|
|
|
version="2.10.0";
|
2011-04-09 18:57:00 +00:00
|
|
|
name="${baseName}-${version}";
|
2013-02-23 19:32:12 +00:00
|
|
|
extension="tar.bz2";
|
2011-04-09 18:57:00 +00:00
|
|
|
url="http://ftp.linux.kiev.ua/pub/fgfs/Source/${name}.${extension}";
|
2013-02-23 19:32:12 +00:00
|
|
|
hash="0pq5nwyxwp8ar5rr0jh8p04bv0i9i841m374jwd748csnsn28zh6";
|
2011-04-09 18:57:00 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
datasrc = a.fetchurl {
|
|
|
|
url = "http://ftp.igh.cnrs.fr/pub/flightgear/ftp/Shared/FlightGear-data-2.0.0.tar.bz2";
|
|
|
|
sha256 = "0kvmvh5qycbpdjx12l20cbhljwimmcgww2dg4lkc2sky0kg14ic1";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
2013-02-23 19:32:12 +00:00
|
|
|
phaseNames = ["doCmake" "doMakeInstall" "deployData"];
|
2011-04-09 18:57:00 +00:00
|
|
|
|
|
|
|
deployData = a.fullDepEntry ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/share/FlightGear"
|
2011-04-09 18:57:00 +00:00
|
|
|
cd "$out/share/FlightGear"
|
|
|
|
tar xvf ${datasrc}
|
|
|
|
'' ["minInit" "defEnsureDir"];
|
2013-02-23 19:32:12 +00:00
|
|
|
|
2011-04-09 18:57:00 +00:00
|
|
|
meta = {
|
|
|
|
description = "A flight simulator";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2013-06-17 01:12:46 +00:00
|
|
|
#platforms = a.lib.platforms.linux;
|
2011-04-09 18:57:00 +00:00
|
|
|
license = a.lib.licenses.gpl2;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|