2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="angelscript";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "2.35.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "sha256-AQ3UXiPnNNRvWJHXDiaGB6EsuasSUD3aQvhC2dt+iFc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
buildInputs = [
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
preConfigure = ''
|
|
|
|
cd angelscript/projects/gnuc
|
|
|
|
export makeFlags="$makeFlags PREFIX=$out"
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/docs/angelscript"
|
|
|
|
cp -r ../../../docs/* "$out/share/docs/angelscript"
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = "Light-weight scripting library";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.zlib ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
downloadPage = "http://www.angelcode.com/angelscript/downloads.html";
|
|
|
|
homepage="http://www.angelcode.com/angelscript/";
|
|
|
|
};
|
|
|
|
}
|