2021-10-07 14:35:08 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, unzip
|
|
|
|
, cmake
|
|
|
|
}:
|
2021-02-20 21:01:53 +00:00
|
|
|
|
2021-10-07 14:35:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "angelscript";
|
|
|
|
version = "2.35.1";
|
2021-05-16 19:45:55 +00:00
|
|
|
|
2015-03-08 19:29:15 +00:00
|
|
|
src = fetchurl {
|
2021-10-07 14:35:08 +00:00
|
|
|
url = "https://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
|
|
|
|
sha256 = "12x12fs2bjkbh73n2w84wnqhg6xn6mnp6g79gbkwfl6gssv9c42w";
|
2015-03-08 19:29:15 +00:00
|
|
|
};
|
2021-05-16 19:45:55 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip cmake ];
|
|
|
|
|
2015-03-08 19:29:15 +00:00
|
|
|
preConfigure = ''
|
2021-05-16 19:45:55 +00:00
|
|
|
export ROOT=$PWD
|
|
|
|
cd angelscript/projects/cmake
|
2015-03-08 19:29:15 +00:00
|
|
|
'';
|
2021-05-16 19:45:55 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
|
|
|
|
|
2015-03-08 19:29:15 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/docs/angelscript"
|
2021-05-16 19:45:55 +00:00
|
|
|
cp -r $ROOT/docs/* "$out/share/docs/angelscript"
|
2015-03-08 19:29:15 +00:00
|
|
|
'';
|
2021-05-16 19:45:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2013-10-05 14:22:46 +00:00
|
|
|
description = "Light-weight scripting library";
|
2021-05-16 19:45:55 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
downloadPage = "https://www.angelcode.com/angelscript/downloads.html";
|
|
|
|
homepage = "https://www.angelcode.com/angelscript/";
|
2011-04-08 06:52:31 +00:00
|
|
|
};
|
2015-03-08 19:29:15 +00:00
|
|
|
}
|