nixpkgs/pkgs/development/interpreters/angelscript/2.20.nix
Lluís Batlle i Rossell 11aceede25 Downgrading rigsofrods to a version that might work, where cars may run fast.
This rev should be very close to the stablest 0.38.

I had to bring an old angelscript in.


svn path=/nixpkgs/trunk/; revision=32635
2012-02-27 22:39:23 +00:00

66 lines
1.7 KiB
Nix

x@{builderDefsPackage
, unzip
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
sourceInfo = rec {
baseName="angelscript";
version="2.20.3";
name="${baseName}-${version}";
url="http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
hash="1gyfi35n7vcm9bm0f1q3va4w8b94avc713b6yqzinzg6dmp1x937";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
};
inherit (sourceInfo) name version;
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["prepareBuild" "doMake" "cleanLib" "doMakeInstall" "installDocs"];
prepareBuild = a.fullDepEntry ''
cd angelscript/projects/gnuc
sed -i makefile -e "s@LOCAL = .*@LOCAL = $out@"
ensureDir "$out/lib" "$out/bin" "$out/share" "$out/include"
export SHARED=1
export VERSION="${version}"
'' ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
cleanLib = a.fullDepEntry ''
rm ../../lib/*
'' ["minInit"];
installDocs = a.fullDepEntry ''
ensureDir "$out/share/angelscript"
cp -r ../../../docs "$out/share/angelscript"
'' ["defEnsureDir" "prepareBuild"];
meta = {
description = "A light-weight scripting library";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.zlib;
};
passthru = {
updateInfo = {
downloadPage = "http://www.angelcode.com/angelscript/downloads.asp";
};
};
}) x