nixpkgs/pkgs/development/interpreters/angelscript/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
912 B
Nix
Raw Normal View History

2021-10-07 14:35:08 +00:00
{ lib
, stdenv
, fetchurl
, unzip
, cmake
}:
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
src = fetchurl {
2021-10-07 14:35:08 +00:00
url = "https://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
sha256 = "12x12fs2bjkbh73n2w84wnqhg6xn6mnp6g79gbkwfl6gssv9c42w";
};
2021-05-16 19:45:55 +00:00
nativeBuildInputs = [ unzip cmake ];
preConfigure = ''
2021-05-16 19:45:55 +00:00
export ROOT=$PWD
cd angelscript/projects/cmake
'';
2021-05-16 19:45:55 +00:00
cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" ];
postInstall = ''
mkdir -p "$out/share/docs/angelscript"
2021-05-16 19:45:55 +00:00
cp -r $ROOT/docs/* "$out/share/docs/angelscript"
'';
2021-05-16 19:45:55 +00:00
meta = with lib; {
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/";
};
}