depot/third_party/nixpkgs/pkgs/development/interpreters/angelscript/default.nix
Default email d2947cfef0 Project import generated by Copybara.
GitOrigin-RevId: 598f83ebeb2235435189cf84d844b8b73e858e0f
2022-10-06 20:32:54 +02:00

39 lines
911 B
Nix

{ lib
, stdenv
, fetchurl
, unzip
, cmake
}:
stdenv.mkDerivation rec {
pname = "angelscript";
version = "2.36.0";
src = fetchurl {
url = "https://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
sha256 = "sha256-M/lfdZe8DYiwl9NeexMg0VQZ/8V3mFHZ0qbMzsV4EbM=";
};
nativeBuildInputs = [ unzip cmake ];
preConfigure = ''
export ROOT=$PWD
cd angelscript/projects/cmake
'';
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
postInstall = ''
mkdir -p "$out/share/docs/angelscript"
cp -r $ROOT/docs/* "$out/share/docs/angelscript"
'';
meta = with lib; {
description = "Light-weight scripting library";
license = licenses.zlib;
maintainers = with maintainers; [ raskin ];
platforms = platforms.all;
downloadPage = "https://www.angelcode.com/angelscript/downloads.html";
homepage = "https://www.angelcode.com/angelscript/";
};
}