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

27 lines
619 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, meson, ninja }:
2019-03-30 16:47:14 +01:00
stdenv.mkDerivation rec {
pname = "janet";
2020-02-07 11:54:34 +01:00
version = "1.7.0";
2019-03-30 16:47:14 +01:00
src = fetchFromGitHub {
owner = "janet-lang";
repo = pname;
2019-03-30 16:47:14 +01:00
rev = "v${version}";
2020-02-07 11:54:34 +01:00
sha256 = "1z7r4ddgwxgxy1pp36p2wchcmzjqfyki3a4kicnr23ldflqv9ycc";
2019-03-30 16:47:14 +01: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;
meta = with stdenv.lib; {
description = "Janet programming language";
homepage = https://janet-lang.org/;
license = licenses.mit;
2019-03-30 16:47:14 +01:00
platforms = platforms.all;
maintainers = with maintainers; [ andrewchambers ];
2019-03-30 16:47:14 +01:00
};
}