1 { lib, stdenv, ruby, rake, fetchFromGitHub }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-MmrbWeg/G29YBvVrOtceTOZChrQ2kx9+apl7u7BiGjA=";
14 nativeBuildInputs = [ rake ];
16 nativeCheckInputs = [ ruby ];
18 # Necessary so it uses `gcc` instead of `ld` for linking.
19 # https://github.com/mruby/mruby/blob/e502fd88b988b0a8d9f31b928eb322eae269c45a/tasks/toolchains/gcc.rake#L30
20 preBuild = "unset LD";
24 cp -R include build/host/{bin,lib} $out
32 description = "An embeddable implementation of the Ruby language";
33 homepage = "https://mruby.org";
34 maintainers = with maintainers; [ nicknovitski marsam ];
35 license = licenses.mit;
36 platforms = platforms.all;