10 stdenv.mkDerivation (finalAttrs: {
14 src = fetchFromGitHub {
17 rev = finalAttrs.version;
18 sha256 = "sha256-rCoEC1ioX6bOocPoPi+Lsn4PM8gY0DjKja1/MJvJ1n8=";
21 nativeBuildInputs = [ rake ];
23 nativeCheckInputs = [ ruby ];
25 # Necessary so it uses `gcc` instead of `ld` for linking.
26 # https://github.com/mruby/mruby/blob/e502fd88b988b0a8d9f31b928eb322eae269c45a/tasks/toolchains/gcc.rake#L30
27 preBuild = "unset LD";
31 cp -R include build/host/{bin,lib} $out
39 version = testers.testVersion {
40 package = finalAttrs.finalPackage;
45 description = "Embeddable implementation of the Ruby language";
46 homepage = "https://mruby.org";
47 maintainers = with maintainers; [ nicknovitski ];
48 license = licenses.mit;
49 platforms = platforms.all;
50 mainProgram = "mruby";