2021-01-23 14:15:07 +01:00
|
|
|
{ lib, stdenv, fetchurl, perl
|
2019-12-29 04:10:33 +01:00
|
|
|
, CoreServices, ApplicationServices }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moarvm";
|
2021-03-18 11:42:57 +01:00
|
|
|
version = "2021.02";
|
2019-12-29 04:10:33 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-02-26 16:06:51 +01:00
|
|
|
url = "https://www.moarvm.org/releases/MoarVM-${version}.tar.gz";
|
2021-03-18 11:42:57 +01:00
|
|
|
sha256 = "08ri9mvbk97qfxcy6lj4cb7j3a789ck052m2vqfhis3vkrkw780r";
|
2020-02-26 16:06:51 +01:00
|
|
|
};
|
2019-12-29 04:10:33 +01:00
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
buildInputs = [ perl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
|
2019-12-29 04:10:33 +01:00
|
|
|
doCheck = false; # MoarVM does not come with its own test suite
|
|
|
|
|
|
|
|
configureScript = "${perl}/bin/perl ./Configure.pl";
|
|
|
|
|
2021-01-23 14:15:07 +01:00
|
|
|
meta = with lib; {
|
2019-12-29 04:10:33 +01:00
|
|
|
description = "VM with adaptive optimization and JIT compilation, built for Rakudo";
|
2020-02-26 16:06:51 +01:00
|
|
|
homepage = "https://www.moarvm.org/";
|
2019-12-29 04:10:33 +01:00
|
|
|
license = licenses.artistic2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice vrthra sgo ];
|
|
|
|
};
|
|
|
|
}
|