nixpkgs/pkgs/development/interpreters/janet/default.nix

27 lines
619 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, meson, ninja }:
2019-03-30 15:47:14 +00:00
stdenv.mkDerivation rec {
pname = "janet";
2021-01-22 13:26:38 +00:00
version = "1.14.1";
2019-03-30 15:47:14 +00:00
src = fetchFromGitHub {
owner = "janet-lang";
repo = pname;
2019-03-30 15:47:14 +00:00
rev = "v${version}";
2021-01-22 13:26:38 +00:00
sha256 = "sha256-cI0kcY8aYDkmitoju/C6Ule5gzflIe0nLVxZp4iHXnc=";
2019-03-30 15:47:14 +00: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 lib; {
2019-03-30 15:47:14 +00:00
description = "Janet programming language";
2020-04-01 14:24:36 +01:00
homepage = "https://janet-lang.org/";
license = licenses.mit;
2019-03-30 15:47:14 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ andrewchambers ];
2019-03-30 15:47:14 +00:00
};
}