nixpkgs/pkgs/games/soi/default.nix
Mateusz Kowalczyk 007f80c1d0 Turn more licenses into lib.licenses style
Should eval cleanly, as far as -A tarball tells me.

Relevant: issue #2999, issue #739
2014-11-06 00:48:16 +00:00

56 lines
1.4 KiB
Nix

x@{builderDefsPackage
, mesa, SDL, cmake, eigen
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
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
'';
meta = {
description = "A physics-based puzzle game";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.free;
broken = true;
};
passthru = {
updateInfo = {
downloadPage = "http://sourceforge.net/projects/soi/files/";
};
};
}) x