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