mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
dfacfebe23
https://github.com/mruby/mruby/blob/3.2.0/NEWS Fixes: - CVE-2022-0080 - CVE-2022-0240 - CVE-2022-0326 - CVE-2022-0631 - CVE-2022-0481 - CVE-2022-0525 - CVE-2022-0570 - CVE-2022-0614 - CVE-2022-0623 - CVE-2022-0630 - CVE-2022-0631 - CVE-2022-0632 - CVE-2022-0717 - CVE-2022-0890 - CVE-2022-1106 - CVE-2022-1212 - CVE-2022-1276 - CVE-2022-1286 - CVE-2022-1934
43 lines
997 B
Nix
43 lines
997 B
Nix
{ lib, stdenv, ruby, bison, rake, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mruby";
|
|
version = "3.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mruby";
|
|
repo = "mruby";
|
|
rev = version;
|
|
sha256 = "sha256-MmrbWeg/G29YBvVrOtceTOZChrQ2kx9+apl7u7BiGjA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ ruby bison rake ];
|
|
|
|
# Necessary so it uses `gcc` instead of `ld` for linking.
|
|
# https://github.com/mruby/mruby/blob/35be8b252495d92ca811d76996f03c470ee33380/tasks/toolchains/gcc.rake#L25
|
|
preBuild = if stdenv.isLinux then "unset LD" else null;
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp -R include build/host/{bin,lib} $out
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
rake test
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "An embeddable implementation of the Ruby language";
|
|
homepage = "https://mruby.org";
|
|
maintainers = [ maintainers.nicknovitski ];
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|