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

27 lines
617 B
Nix
Raw Normal View History

{ 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";
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
};
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/;
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
};
}