Skip to content

Commit

Permalink
mruby: 2.1.1 -> 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Sep 21, 2020
1 parent 731fd9e commit c743f4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 64 deletions.
59 changes: 0 additions & 59 deletions pkgs/development/compilers/mruby/bison-36-compat.patch

This file was deleted.

8 changes: 3 additions & 5 deletions pkgs/development/compilers/mruby/default.nix
Expand Up @@ -2,26 +2,24 @@

stdenv.mkDerivation rec {
pname = "mruby";
version = "2.1.1";
version = "2.1.2";

src = fetchFromGitHub {
owner = "mruby";
repo = "mruby";
rev = version;
sha256 = "gEEb0Vn/G+dNgeY6r0VP8bMSPrEOf5s+0GoOcnIPtEU=";
sha256 = "0fhfv8pi7i8jn2vgk2n2rjnbnfa12nhj514v8i4k353n7q4pmkh3";
};

nativeBuildInputs = [ ruby bison rake ];

patches = [ ./bison-36-compat.patch ];

# 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 build/host/{bin,lib} $out
cp -R include build/host/{bin,lib} $out
'';

doCheck = true;
Expand Down

0 comments on commit c743f4e

Please sign in to comment.