1{ lib 2, stdenv 3, fetchurl 4, unzip 5, cmake 6}: 7 8stdenv.mkDerivation rec { 9 pname = "angelscript"; 10 version = "2.36.1"; 11 12 src = fetchurl { 13 url = "https://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip"; 14 sha256 = "sha256-WLt0mvnH44YwRwX05uYnrkHf4D4LanPD0NLgF8T8lI8="; 15 }; 16 17 nativeBuildInputs = [ unzip cmake ]; 18 19 preConfigure = '' 20 export ROOT=$PWD 21 cd angelscript/projects/cmake 22 ''; 23 24 cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ]; 25 26 postInstall = '' 27 mkdir -p "$out/share/docs/angelscript" 28 cp -r $ROOT/docs/* "$out/share/docs/angelscript" 29 ''; 30 31 meta = with lib; { 32 description = "Light-weight scripting library"; 33 license = licenses.zlib; 34 maintainers = with maintainers; [ raskin ]; 35 platforms = platforms.all; 36 downloadPage = "https://www.angelcode.com/angelscript/downloads.html"; 37 homepage = "https://www.angelcode.com/angelscript/"; 38 }; 39}