2015-03-08 19:29:15 +00:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
2011-04-08 06:52:31 +00:00
|
|
|
baseName="angelscript";
|
2016-08-10 17:28:06 +00:00
|
|
|
version = "2.31.1";
|
2011-04-08 06:52:31 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
|
2016-08-10 17:28:06 +00:00
|
|
|
sha256 = "00z0x2w1dnfd2h8xvmq3qy2n8gqxyi9gxwnsz0q420by8vnrljmh";
|
2011-04-08 06:52:31 +00:00
|
|
|
};
|
2015-03-08 19:29:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
unzip
|
|
|
|
];
|
2011-04-08 06:52:31 +00:00
|
|
|
in
|
2015-03-08 19:29:15 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2011-04-08 06:52:31 +00:00
|
|
|
inherit buildInputs;
|
2015-03-08 19:29:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
preConfigure = ''
|
2011-04-08 06:52:31 +00:00
|
|
|
cd angelscript/projects/gnuc
|
2015-03-08 19:29:15 +00:00
|
|
|
export makeFlags="$makeFlags PREFIX=$out"
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/docs/angelscript"
|
|
|
|
cp -r ../../../docs/* "$out/share/docs/angelscript"
|
|
|
|
'';
|
2011-04-08 06:52:31 +00:00
|
|
|
meta = {
|
2015-03-08 19:29:15 +00:00
|
|
|
inherit (s) version;
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Light-weight scripting library";
|
2015-03-08 19:29:15 +00:00
|
|
|
license = stdenv.lib.licenses.zlib ;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-07-01 08:55:16 +00:00
|
|
|
downloadPage = "http://www.angelcode.com/angelscript/downloads.html";
|
2015-03-08 19:29:15 +00:00
|
|
|
homepage="http://www.angelcode.com/angelscript/";
|
2011-04-08 06:52:31 +00:00
|
|
|
};
|
2015-03-08 19:29:15 +00:00
|
|
|
}
|