2021-12-24 16:51:28 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "angelscript";
|
|
|
|
version = "2.22.2";
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
2016-04-15 22:59:45 +00:00
|
|
|
src = fetchurl {
|
2021-12-24 16:51:28 +00:00
|
|
|
url = "http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
|
|
|
|
sha256 = "sha256-gzR96GSZJNV+bei3OPqlx7aw+WBv8XRpHGh8u+go6N4=";
|
2016-04-15 22:59:45 +00:00
|
|
|
};
|
|
|
|
preConfigure = ''
|
|
|
|
cd angelscript/projects/gnuc
|
|
|
|
sed -i makefile -e "s@LOCAL = .*@LOCAL = $out@"
|
2021-01-21 00:55:55 +00:00
|
|
|
export SHARED=1
|
2021-12-24 16:51:28 +00:00
|
|
|
export VERSION="${version}"
|
2016-04-15 22:59:45 +00:00
|
|
|
mkdir -p "$out/lib" "$out/bin" "$out/share" "$out/include"
|
|
|
|
'';
|
|
|
|
postBuild = ''
|
|
|
|
rm ../../lib/*
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/share/docs/angelscript"
|
|
|
|
cp -r ../../../docs/* "$out/share/docs/angelscript"
|
|
|
|
'';
|
2021-12-24 16:51:28 +00:00
|
|
|
meta = with lib; {
|
2016-04-15 22:59:45 +00:00
|
|
|
description = "Light-weight scripting library";
|
2021-12-24 16:51:28 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2018-12-09 21:39:52 +00:00
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2016-04-15 22:59:45 +00:00
|
|
|
downloadPage = "http://www.angelcode.com/angelscript/downloads.html";
|
2021-12-24 16:51:28 +00:00
|
|
|
homepage = "http://www.angelcode.com/angelscript/";
|
2016-04-15 22:59:45 +00:00
|
|
|
};
|
|
|
|
}
|