2021-01-23 13:15:07 +00:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
2015-03-08 19:29:15 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
2011-04-08 07:52:31 +01:00
|
|
|
baseName="angelscript";
|
2021-01-19 05:09:45 +00:00
|
|
|
version = "2.35.0";
|
2011-04-08 07:52:31 +01:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
|
2021-01-19 05:09:45 +00:00
|
|
|
sha256 = "sha256-AQ3UXiPnNNRvWJHXDiaGB6EsuasSUD3aQvhC2dt+iFc=";
|
2011-04-08 07:52:31 +01:00
|
|
|
};
|
2021-02-20 21:01:53 +00:00
|
|
|
|
2011-04-08 07:52:31 +01:00
|
|
|
in
|
2015-03-08 19:29:15 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2015-03-08 19:29:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
preConfigure = ''
|
2011-04-08 07:52:31 +01: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 07:52:31 +01:00
|
|
|
meta = {
|
2015-03-08 19:29:15 +00:00
|
|
|
inherit (s) version;
|
2013-10-05 15:22:46 +01:00
|
|
|
description = "Light-weight scripting library";
|
2021-01-23 13:15:07 +00:00
|
|
|
license = lib.licenses.zlib ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2014-07-01 09:55:16 +01: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 07:52:31 +01:00
|
|
|
};
|
2015-03-08 19:29:15 +00:00
|
|
|
}
|