2021-01-23 14:15:07 +01:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
2016-04-16 00:59:45 +02:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
|
|
|
rec {
|
|
|
|
baseName="angelscript";
|
|
|
|
version = "2.22.2";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
|
|
|
|
sha256 = "1pp853lbnz383ilp9wbgc3wv1dn7lpx3idz8dmzda94rckl7sd43";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit (s) name version;
|
2021-02-20 22:01:53 +01:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
2016-04-16 00:59:45 +02:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
|
|
|
preConfigure = ''
|
|
|
|
cd angelscript/projects/gnuc
|
|
|
|
sed -i makefile -e "s@LOCAL = .*@LOCAL = $out@"
|
2021-01-21 01:55:55 +01:00
|
|
|
export SHARED=1
|
2016-04-16 00:59:45 +02:00
|
|
|
export VERSION="${s.version}"
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = "Light-weight scripting library";
|
2021-01-23 14:15:07 +01:00
|
|
|
license = lib.licenses.zlib ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2018-12-09 22:39:52 +01:00
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2016-04-16 00:59:45 +02:00
|
|
|
downloadPage = "http://www.angelcode.com/angelscript/downloads.html";
|
|
|
|
homepage="http://www.angelcode.com/angelscript/";
|
|
|
|
};
|
|
|
|
}
|