mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
mruby: init at 1.4.1
This commit is contained in:
parent
bca83f7cd1
commit
c26a6db0f8
28
pkgs/development/compilers/mruby/default.nix
Normal file
28
pkgs/development/compilers/mruby/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv, ruby, bison, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mruby-${version}";
|
||||
version = "1.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mruby";
|
||||
repo = "mruby";
|
||||
rev = version;
|
||||
sha256 = "0pw72acbqgs4n1qa297nnja23v9hxz9g7190yfx9kwm7mgbllmww";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ ruby bison ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -R build/host/{bin,lib} $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An embeddable implementation of the Ruby language";
|
||||
homepage = https://mruby.org;
|
||||
maintainers = [ maintainers.nicknovitski ];
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
|
@ -7638,6 +7638,8 @@ with pkgs;
|
|||
|
||||
ruby = ruby_2_4;
|
||||
|
||||
mruby = callPackage ../development/compilers/mruby { };
|
||||
|
||||
scsh = callPackage ../development/interpreters/scsh { };
|
||||
|
||||
scheme48 = callPackage ../development/interpreters/scheme48 { };
|
||||
|
|
Loading…
Reference in a new issue