mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
f985ffd06a
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/angelscript/versions
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{stdenv, fetchurl, unzip}:
|
|
let
|
|
s = # Generated upstream information
|
|
rec {
|
|
baseName="angelscript";
|
|
version = "2.33.0";
|
|
name="${baseName}-${version}";
|
|
url="http://www.angelcode.com/angelscript/sdk/files/angelscript_${version}.zip";
|
|
sha256 = "18qywbi1k53xgnlr9v6ycin669j5v5qspq7lli4jhf6l4c5hk49n";
|
|
};
|
|
buildInputs = [
|
|
unzip
|
|
];
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit (s) name version;
|
|
inherit buildInputs;
|
|
src = fetchurl {
|
|
inherit (s) url sha256;
|
|
};
|
|
preConfigure = ''
|
|
cd angelscript/projects/gnuc
|
|
export makeFlags="$makeFlags PREFIX=$out"
|
|
'';
|
|
postInstall = ''
|
|
mkdir -p "$out/share/docs/angelscript"
|
|
cp -r ../../../docs/* "$out/share/docs/angelscript"
|
|
'';
|
|
meta = {
|
|
inherit (s) version;
|
|
description = "Light-weight scripting library";
|
|
license = stdenv.lib.licenses.zlib ;
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
downloadPage = "http://www.angelcode.com/angelscript/downloads.html";
|
|
homepage="http://www.angelcode.com/angelscript/";
|
|
};
|
|
}
|