2019-07-05 15:47:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja }:
|
2019-03-30 15:47:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "janet";
|
2021-01-19 01:24:30 +00:00
|
|
|
version = "1.13.1";
|
2019-03-30 15:47:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "janet-lang";
|
2019-07-05 15:47:44 +01:00
|
|
|
repo = pname;
|
2019-03-30 15:47:14 +00:00
|
|
|
rev = "v${version}";
|
2021-01-19 01:24:30 +00:00
|
|
|
sha256 = "sha256-JXRPW1PYhVe2Qu8SAmcLgtwf8u3sb43H7AFeW7EqPZo=";
|
2019-03-30 15:47:14 +00:00
|
|
|
};
|
|
|
|
|
2019-07-05 15:47:44 +01:00
|
|
|
nativeBuildInputs = [ meson ninja ];
|
2019-09-22 06:47:11 +01:00
|
|
|
mesonFlags = [ "-Dgit_hash=release" ];
|
2019-03-30 15:47:14 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Janet programming language";
|
2020-04-01 14:24:36 +01:00
|
|
|
homepage = "https://janet-lang.org/";
|
2019-07-05 15:47:44 +01:00
|
|
|
license = licenses.mit;
|
2019-03-30 15:47:14 +00:00
|
|
|
platforms = platforms.all;
|
2019-07-05 15:47:44 +01:00
|
|
|
maintainers = with maintainers; [ andrewchambers ];
|
2019-03-30 15:47:14 +00:00
|
|
|
};
|
|
|
|
}
|