2011-01-28 09:13:52 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, mesa, SDL, cmake, eigen
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
2014-11-06 01:44:33 +01:00
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
2011-01-28 09:13:52 +01:00
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="soi";
|
|
|
|
fileName="Spheres%20of%20Influence";
|
|
|
|
majorVersion="0.1";
|
|
|
|
minorVersion="1";
|
|
|
|
version="${majorVersion}.${minorVersion}";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
project="${baseName}";
|
|
|
|
url="mirror://sourceforge/project/${project}/${baseName}-${majorVersion}/${fileName}-${version}-Source.tar.gz";
|
|
|
|
hash="dfc59319d2962033709bb751c71728417888addc6c32cbec3da9679087732a81";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
name = "${sourceInfo.name}.tar.gz";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
phaseNames = ["setVars" "doCmake" "doMakeInstall"];
|
|
|
|
|
|
|
|
setVars = a.noDepEntry ''
|
|
|
|
export EIGENDIR=${a.eigen}/include/eigen2
|
2014-11-06 01:44:33 +01:00
|
|
|
'';
|
|
|
|
|
2011-01-28 09:13:52 +01:00
|
|
|
meta = {
|
|
|
|
description = "A physics-based puzzle game";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
2014-11-06 01:44:33 +01:00
|
|
|
license = a.lib.licenses.free;
|
2013-11-04 21:07:57 +01:00
|
|
|
broken = true;
|
2011-01-28 09:13:52 +01:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://sourceforge.net/projects/soi/files/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|