2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "janet";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "1.10.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janet-lang";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "18k6dzxzr149p0bby4r0z6kybylig87rwj7gk3z6a98zf6k4xmsw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja ];
|
|
|
|
mesonFlags = [ "-Dgit_hash=release" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Janet programming language";
|
|
|
|
homepage = "https://janet-lang.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ andrewchambers ];
|
|
|
|
};
|
|
|
|
}
|