2019-07-05 16:47:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, meson, ninja }:
|
2019-03-30 16:47:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "janet";
|
2019-07-19 05:12:03 +02:00
|
|
|
version = "1.1.0";
|
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}";
|
2019-07-19 05:12:03 +02:00
|
|
|
sha256 = "0ncyg594fixvvkgk0k89b40v9hy36lcr2gniks3ac6cyqy2iixx5";
|
2019-03-30 16:47:14 +01:00
|
|
|
};
|
|
|
|
|
2019-07-05 16:47:44 +02:00
|
|
|
nativeBuildInputs = [ meson ninja ];
|
|
|
|
mesonFlags = ["-Dgit_hash=release"];
|
2019-03-30 16:47:14 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Janet programming language";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|