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
911 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";
2022-10-01 07:36:39 +00:00
version = "2.36.0";
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";
2022-10-01 07:36:39 +00:00
sha256 = "sha256-M/lfdZe8DYiwl9NeexMg0VQZ/8V3mFHZ0qbMzsV4EbM=";
};
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/";
};
}