summary refs log tree commit diff
path: root/pkgs/development/interpreters/nelua/default.nix
blob: 8030980b77886607570d6b825e29c0dfd1150a7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, stdenv, fetchFromGitHub, luaPackages }:

stdenv.mkDerivation {
  pname = "nelua";
  version = "unstable-2023-01-21";

  src = fetchFromGitHub {
    owner = "edubart";
    repo = "nelua-lang";
    rev = "d10cc61bc54050b07874a8597f8df20534885105";
    hash = "sha256-HyNYqhPCQVBJqEcAUUXfvycXE8tWIMIUJJMTIV48ne8=";
  };

  makeFlags = [ "PREFIX=$(out)" ];

  nativeCheckInputs = [ luaPackages.luacheck ];

  doCheck = true;

  meta = with lib; {
    description = "Minimal, efficient, statically-typed and meta-programmable systems programming language heavily inspired by Lua, which compiles to C and native code";
    homepage = "https://nelua.io/";
    license = licenses.mit;
    platforms = platforms.all;
    maintainers = [ maintainers.marsam ];
  };
}