{ stdenv, fetchFromGitHub, meson, ninja }: stdenv.mkDerivation rec { pname = "janet"; version = "1.5.1"; src = fetchFromGitHub { owner = "janet-lang"; repo = pname; rev = "v${version}"; sha256 = "13b4haaanlgi8qpwwvf59zf7qsw8p0zdqv7xdxjjyid5yww7jmm2"; }; nativeBuildInputs = [ meson ninja ]; mesonFlags = [ "-Dgit_hash=release" ]; doCheck = true; meta = with stdenv.lib; { description = "Janet programming language"; homepage = https://janet-lang.org/; license = licenses.mit; platforms = platforms.all; maintainers = with maintainers; [ andrewchambers ]; }; }